Angular: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 5: | Line 5: | ||
=== Component === | === Component === | ||
Encapsulates the template, data and the behavior of a view. | Encapsulates the template, data and the behavior of a view. | ||
=== Directive === | |||
To modify DOM elements and/or extend their behavior. | |||
=== Observable === | === Observable === |
Revision as of 11:10, 8 January 2018
Overview
Angular2 내용 정리.
Basics
Component
Encapsulates the template, data and the behavior of a view.
Directive
To modify DOM elements and/or extend their behavior.
Observable
Observable은 Angular 에서 사용되는 객체로(자바 스크립트 객체가 아님) 일반적으로 다음과 같은 형태로 사용된다. <source lang=javascript> observable_return_function.subscribe() </source> observable_return_function 에 의해 정의된 특정 조건이 갖춰지면 observable 이 생성되고, .subscribe 를 통해 observable 함수가 실행된다.
Tutorial
- https://angular.io/tutorial - Tutorial: Tour of Heroes
- https://www.a-mean-blog.com/ko/blog/Angular-2/Tour-of-Heroes - Tour of heroes