Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
loader: {
provide: TranslateLoader,
useFactory: (HttpLoaderFactory),
deps: [HttpClient]
}
}),
BrowserAnimationsModule,
NbThemeModule.forRoot({ name: 'cosmic' }),
NbLayoutModule,
NbEvaIconsModule,
NbSidebarModule.forRoot(), // NbSidebarModule.forRoot(), //if this is your app.module
NbButtonModule,
NbActionsModule,
NbSearchModule,
NbIconModule,
NbMenuModule.forRoot(),
NbTooltipModule,
NbCardModule,
NbInputModule,
NbCheckboxModule,
NbSelectModule,
NbDialogModule.forRoot(),
NgxMaskModule.forRoot(),
NbToastrModule.forRoot(),
ReactiveFormsModule,
NbAlertModule,
FormlyModule.forRoot(),
NbDatepickerModule.forRoot(),
FormlyBootstrapModule,
Ng2FittextModule,
NgBootstrapFormValidationModule.forRoot(),
],
import { DOCS, STRUCTURE } from './app.options';
const docs = require('../output.json');
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
HttpClientModule,
NbSidebarModule,
NbCardModule,
NbLayoutModule,
NbTabsetModule,
NbCheckboxModule,
NbProgressBarModule,
NbMenuModule.forRoot(),
NbThemeModule.forRoot(),
NgdThemeModule.forRoot(),
NbSidebarModule.forRoot(),
RouterModule.forRoot(routes, { useHash: false }),
],
declarations: [
NgdAppComponent,
],
providers: [
Title,
{ provide: STRUCTURE, useValue: structure },
{ provide: DOCS, useValue: docs },
],
entryComponents: [
],
bootstrap: [NgdAppComponent],
@NgModule({
declarations: [
ContextMenuClickComponent,
ContextMenuShowcaseComponent,
ContextMenuTestComponent,
ContextMenuModesComponent,
ContextMenuNoopComponent,
ContextMenuRightClickComponent,
],
imports: [
NbContextMenuModule,
NbLayoutModule,
NbUserModule,
NbCardModule,
NbButtonModule,
NbMenuModule.forRoot(),
ContextMenuRoutingModule,
],
})
export class ContextMenuModule {}
@NgModule({
declarations: [
ContextMenuClickComponent,
ContextMenuShowcaseComponent,
ContextMenuTestComponent,
ContextMenuModesComponent,
ContextMenuNoopComponent,
ContextMenuRightClickComponent,
],
imports: [
NbContextMenuModule,
NbLayoutModule,
NbUserModule,
NbCardModule,
NbButtonModule,
NbMenuModule.forRoot(),
ContextMenuRoutingModule,
],
})
export class ContextMenuModule {}
MenuChildrenComponent,
MenuShowcaseComponent,
MenuAutoCollapseComponent,
MenuLinkParamsComponent,
MenuServiceItem1Component,
MenuServiceItem2Component,
MenuServiceItem3Component,
MenuServiceItem31Component,
MenuServiceItem32Component,
MenuServiceItem33Component,
MenuServiceItem331Component,
MenuServiceItem332Component,
MenuServiceComponent,
],
imports: [
NbMenuModule.forRoot(),
NbCardModule,
MenuRoutingModule,
NbButtonModule,
],
})
export class MenuModule {}
EXAMPLES_STRUCTURE,
} from './app.options';
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
FormsModule,
HttpClientModule,
NbSidebarModule,
NbCardModule,
NbLayoutModule,
NbTabsetModule,
NbCheckboxModule,
NbProgressBarModule,
NbMenuModule.forRoot(),
NbThemeModule.forRoot(),
NgdThemeModule.forRoot(),
NbSidebarModule.forRoot(),
RouterModule.forRoot(routes, { useHash: false }),
],
declarations: [
NgdAppComponent,
],
providers: [
Title,
{ provide: STRUCTURE, useValue: structure },
{ provide: DOCS, useValue: docs },
{ provide: EXAMPLES_STRUCTURE, useValue: examples },
],
entryComponents: [
],
NbToastrModule,
NbWindowModule,
} from '@nebular/theme';
@NgModule({
declarations: [AppComponent],
imports: [
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
AppRoutingModule,
ThemeModule.forRoot(),
NbSidebarModule.forRoot(),
NbMenuModule.forRoot(),
NbDatepickerModule.forRoot(),
NbDialogModule.forRoot(),
NbWindowModule.forRoot(),
NbToastrModule.forRoot(),
NbChatModule.forRoot({
messageGoogleMapKey: 'AIzaSyA_wNuCzia92MAmdLRzmqitRGvCF7wCZPY',
}),
CoreModule.forRoot(),
],
bootstrap: [AppComponent],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
],
})
export class AppModule {
}
beforeEach(() => {
TestBed.configureTestingModule({
imports: [
RouterTestingModule.withRoutes([]),
NoopAnimationsModule,
NbThemeModule.forRoot(),
NbSidebarModule.forRoot(),
NbMenuModule.forRoot(),
],
declarations: [ SidebarExpandTestComponent ],
});
});