app.module.ts 641 B

123456789101112131415161718192021
  1. import { NgModule, BrowserModule } from '@angular/core';
  2. import { FooDirective } from './foo.directive';
  3. import { FooComponent } from './foo.component';
  4. import { BarDirective } from './bar.directive';
  5. import { BarComponent } from './bar.component';
  6. import { FooService } from './foo.service';
  7. import { BarModule } from './bar.module';
  8. import { FooModule } from './foo.module';
  9. /**
  10. * AppModule description
  11. *
  12. * See {@link BarComponent}
  13. */
  14. @NgModule({
  15. declarations: [FooDirective, FooComponent, BarComponent],
  16. providers: [FooService],
  17. imports: [BarModule, FooModule],
  18. bootstrap: [FooComponent]
  19. })
  20. export class AppModule {}