Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. import { NgModule } from '@angular/core';
  2. import { CommonModule } from '@angular/common';
  3. import { ListProductsComponent } from './components/list-products/list-products.component';
  4. import { ListProductsService } from './services/list-products.service';
  5.  
  6. @NgModule({
  7. declarations: [
  8. ListProductsComponent
  9. ],
  10. imports: [
  11. CommonModule
  12. ],
  13. providers: [
  14. ListProductsService
  15. ],
  16. exports: [
  17. CommonModule,
  18. ListProductsComponent
  19. ]
  20. })
  21. export class ProductsModule { }
  22.  
  23. import { NgModule } from '@angular/core';
  24. import { CommonModule } from '@angular/common';
  25. import { ListProductsComponent } from './components/list-products/list-products.component';
  26. import { ListProductsService } from './services/list-products.service';
  27.  
  28. @NgModule({
  29. declarations: [
  30. ListProductsComponent
  31. ],
  32. imports: [
  33. CommonModule
  34. ],
  35. providers: [
  36. ListProductsService
  37. ],
  38. exports: [
  39. CommonModule,
  40. ListProductsComponent
  41. ]
  42. })
  43. export class ProductsModule { }
  44.  
  45. import { BrowserModule } from '@angular/platform-browser';
  46. import { NgModule } from '@angular/core';
  47. import { ProductsModule } from './modules/products/products.module';
  48. import { AppComponent } from './app.component';
  49.  
  50. @NgModule({
  51. declarations: [
  52. AppComponent,
  53. ],
  54. imports: [
  55. BrowserModule,
  56. ProductsModule
  57. ],
  58. providers: [],
  59. bootstrap: [AppComponent]
  60. })
  61. export class AppModule { }
  62.  
  63. import { BrowserModule } from '@angular/platform-browser';
  64. import { NgModule } from '@angular/core';
  65. import { ProductsModule } from './modules/products/products.module';
  66. import { AppComponent } from './app.component';
  67.  
  68. @NgModule({
  69. declarations: [
  70. AppComponent,
  71. ],
  72. imports: [
  73. BrowserModule,
  74. ProductsModule
  75. ],
  76. providers: [],
  77. bootstrap: [AppComponent]
  78. })
  79. export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement