Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2. //////////////////////// ngFor
  3.  
  4. <ul>
  5. <li *ngFor="let item of collection">Bla<li>
  6. </ul>
  7.  
  8. ///////////////////////// evenements
  9.  
  10. (nomEvenement)="methodeDuComposant(parametresEventuels)"
  11.  
  12. ////////////////////////// ngClass
  13.  
  14. [ngClass]="{ 'nomClasse': valeur }"
  15.  
  16. //////////////////////////////// styles
  17.  
  18. @Component({
  19. selector: 'mon-component',
  20. template: '<h1>Bla</h1>',
  21. styles: ['h1 { font-size: 8px; }']
  22. })
  23. export class AppComponent {
  24.  
  25. constructor (param:string, param2:string) {
  26. // instructions
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement