Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////// decorateur
- @MonDecorateur({
- optA: 'truc',
- optB: 'test'
- })
- class MaClasse { }
- //////////////////// classe component
- export class AppComponent {
- maPropriete:string = 'quelquechose';
- constructor (param:string, param2:string) {
- // instructions
- }
- }
- ////////////////// ngModule de base
- import { NgModule } from '@angular/core';
- import { BrowserModule } from '@angular/platform-browser';
- import { RootComponent } from './root.component';
- @NgModule({
- imports: [
- BrowserModule
- ],
- declarations: [RootComponent],
- bootstrap: [RootComponent],
- providers: []
- })
- export class RootModule { }
- ///////////////// bootstrapping
- import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
- import { RootModule } from './components/root.module';
- platformBrowserDynamic().bootstrapModule(RootModule);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement