Advertisement
Guest User

app.module.ts

a guest
Feb 27th, 2018
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. import { CommonModule } from '@angular/common';
  2. import { NotAuthGuard } from './shared/notAuth.guard';
  3. import { AuthGuard } from './shared/auth.guard';
  4. import { AuthService } from './shared/auth.service';
  5. import { AppRoutingModule } from './shared/app-routing.module';
  6. import { BrowserModule } from '@angular/platform-browser';
  7. import { NgModule } from '@angular/core';
  8. import { NgSelectModule, NG_SELECT_DEFAULT_CONFIG } from '@ng-select/ng-select';
  9.  
  10. import { AppComponent } from './app.component';
  11. import { CoreComponent } from './core/core.component';
  12. import { InfoComponent } from './info/info.component';
  13. import { HomeComponent } from './home/home.component';
  14. import { NotFoundComponent } from './not-found/not-found.component';
  15. import { CardComponent } from './home/card/card.component';
  16. import { LoginComponent } from './login/login.component';
  17. import { RegisterComponent } from './register/register.component';
  18. import { FormsModule, ReactiveFormsModule } from '@angular/forms';
  19. import { HttpModule } from "@angular/http";
  20. import { ProfileComponent } from './profile/profile.component';
  21. import { BusinessesComponent } from './businesses/businesses.component';
  22. import { BcardComponent } from './businesses/bcard/bcard.component';
  23. import { SelectedBComponent } from './businesses/selected-b/selected-b.component';
  24. import { TableComponent } from './businesses/selected-b/table/table.component';
  25. import { MyBComponent } from './profile/my-b/my-b.component';
  26. import { MessagesComponent } from './messages/messages.component';
  27. import { McardComponent } from './messages/mcard/mcard.component';
  28. import { AdminModule } from './admin/admin.module';
  29. import { SharedModule } from './shared/shared.module';
  30.  
  31. @NgModule({
  32. declarations: [
  33. AppComponent,
  34. CoreComponent,
  35. InfoComponent,
  36. HomeComponent,
  37. NotFoundComponent,
  38. CardComponent,
  39. LoginComponent,
  40. RegisterComponent,
  41. ProfileComponent,
  42. BusinessesComponent,
  43. BcardComponent,
  44. SelectedBComponent,
  45. TableComponent,
  46. MyBComponent,
  47. MessagesComponent,
  48. McardComponent,
  49. ],
  50. imports: [
  51. BrowserModule,
  52. CommonModule,
  53. AppRoutingModule,
  54. FormsModule,
  55. ReactiveFormsModule,
  56. HttpModule,
  57. NgSelectModule,
  58. AdminModule,
  59. SharedModule
  60. ],
  61. providers: [
  62. AuthService,
  63. AuthGuard,
  64. NotAuthGuard,
  65. {provide: NG_SELECT_DEFAULT_CONFIG,useValue: {notFoundText: 'Custom not found'}}
  66. ],
  67. bootstrap: [AppComponent]
  68. })
  69. export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement