Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 433 Bytes

angular2.org

File metadata and controls

11 lines (8 loc) · 433 Bytes

#+TITLE= Angular2 Get Started

NgModule

declarations : This array contains the list of all components, pipes, and directives that we created and that belong to

in our application’s module.

Common Sense

Bind Event: like this : <li (click)=”fn”/>.

Service: Use component’s constructor to inject service, @Component’s metadata “providers” to tell how to proivder service.

Interface: ngOnInit lifecycle hook