Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { CommonModule } from '@angular/common';
- import { NotAuthGuard } from './shared/notAuth.guard';
- import { AuthGuard } from './shared/auth.guard';
- import { AuthService } from './shared/auth.service';
- import { AppRoutingModule } from './shared/app-routing.module';
- import { BrowserModule } from '@angular/platform-browser';
- import { NgModule } from '@angular/core';
- import { NgSelectModule, NG_SELECT_DEFAULT_CONFIG } from '@ng-select/ng-select';
- import { AppComponent } from './app.component';
- import { CoreComponent } from './core/core.component';
- import { InfoComponent } from './info/info.component';
- import { HomeComponent } from './home/home.component';
- import { NotFoundComponent } from './not-found/not-found.component';
- import { CardComponent } from './home/card/card.component';
- import { LoginComponent } from './login/login.component';
- import { RegisterComponent } from './register/register.component';
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
- import { HttpModule } from "@angular/http";
- import { ProfileComponent } from './profile/profile.component';
- import { BusinessesComponent } from './businesses/businesses.component';
- import { BcardComponent } from './businesses/bcard/bcard.component';
- import { SelectedBComponent } from './businesses/selected-b/selected-b.component';
- import { TableComponent } from './businesses/selected-b/table/table.component';
- import { MyBComponent } from './profile/my-b/my-b.component';
- import { MessagesComponent } from './messages/messages.component';
- import { McardComponent } from './messages/mcard/mcard.component';
- import { AdminModule } from './admin/admin.module';
- import { SharedModule } from './shared/shared.module';
- @NgModule({
- declarations: [
- AppComponent,
- CoreComponent,
- InfoComponent,
- HomeComponent,
- NotFoundComponent,
- CardComponent,
- LoginComponent,
- RegisterComponent,
- ProfileComponent,
- BusinessesComponent,
- BcardComponent,
- SelectedBComponent,
- TableComponent,
- MyBComponent,
- MessagesComponent,
- McardComponent,
- ],
- imports: [
- BrowserModule,
- CommonModule,
- AppRoutingModule,
- FormsModule,
- ReactiveFormsModule,
- HttpModule,
- NgSelectModule,
- AdminModule,
- SharedModule
- ],
- providers: [
- AuthService,
- AuthGuard,
- NotAuthGuard,
- {provide: NG_SELECT_DEFAULT_CONFIG,useValue: {notFoundText: 'Custom not found'}}
- ],
- bootstrap: [AppComponent]
- })
- export class AppModule { }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement