Guest User

Untitled

a guest
May 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. import { NgModule } from '@angular/core';
  2. import { CommonModule } from '@angular/common';
  3. import { CounterService } from '../services/counter.service';
  4. import { CounterComponent } from '../counter/counter.component';
  5. @NgModule({
  6. imports: [ CommonModule],
  7. providers: [CounterService],
  8. declarations: [ CounterComponent ],
  9. exports: [CounterComponent]
  10. })
  11. export class SomeOtherModule { }
  12.  
  13. import { SomeOtherModule } from './some-other/some-other.module';
  14. @NgModule({
  15. declarations: [
  16. AppComponent,
  17. HomeComponent,
  18. CounterComponent,
  19. ],
  20. imports: [SomeOtherModule,
  21. RouterModule.forRoot([
  22. { path: '', component: HomeComponent, pathMatch: 'full' },
  23. { path: 'counter', component: CounterComponent },
  24. ])]
Add Comment
Please, Sign In to add comment