Show Menu
Cheatography

Angular4 Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Binding

Property Binding
{{ studen­tName }}
Event Binding
(click­)="o­nCl­ick­($e­ven­t)"
Two way Binding
[(ngMo­dul­e)]­="{'­stu­den­tName': name}"
 

Services

@Injec­table()
If there is another service to be injected
porviders: ['data­Ser­vice']
Declare it in app.module if it needs to be injected or in a component for local usage only