Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. ////////////////////// decorateur
  2.  
  3. @MonDecorateur({
  4. optA: 'truc',
  5. optB: 'test'
  6. })
  7. class MaClasse { }
  8.  
  9. //////////////////// classe component
  10.  
  11. export class AppComponent {
  12.  
  13. maPropriete:string = 'quelquechose';
  14.  
  15. constructor (param:string, param2:string) {
  16. // instructions
  17. }
  18. }
  19.  
  20. ////////////////// ngModule de base
  21.  
  22. import { NgModule } from '@angular/core';
  23. import { BrowserModule } from '@angular/platform-browser';
  24. import { RootComponent } from './root.component';
  25.  
  26. @NgModule({
  27. imports: [
  28. BrowserModule
  29. ],
  30. declarations: [RootComponent],
  31. bootstrap: [RootComponent],
  32. providers: []
  33. })
  34.  
  35. export class RootModule { }
  36.  
  37. ///////////////// bootstrapping
  38.  
  39. import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
  40. import { RootModule } from './components/root.module';
  41.  
  42. platformBrowserDynamic().bootstrapModule(RootModule);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement