Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
ModuleService,
NavigationService,
VersionService,
]
@NgModule({
declarations: [
ModComponent,
FooterComponent,
HomeComponent,
],
imports: [
HttpModule,
CommonModule,
MaterialModule.forRoot(),
FlexLayoutModule.forRoot(),
RouterModule.forChild(ROUTES),
],
providers: [
...APP_PROVIDERS,
// SocketService,
// AuthGuard
]
})
export class ModModule {
constructor() { }
}
declarations: [
AppComponent,
SettingsDialogComponent,
AddMessageComponent
],
entryComponents: [
AppComponent,
SettingsDialogComponent,
AddMessageComponent
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
MaterialModule,
FlexLayoutModule.forRoot()
],
providers: [
ModelsService
],
bootstrap: [AppComponent]
})
export class AppModule { }
// Copyright 2016 Google Inc. All Rights Reserved.
// Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.io/license
}
return reducer(state, action)
}
}
const rootReducer = compose(stateSetter, combineReducers)({
message
})
let imports = [
BrowserModule,
FormsModule,
HttpModule,
CommonModule,
MaterialModule.forRoot(),
FlexLayoutModule.forRoot(),
RouterModule.forRoot(ROUTES, {
useHash: true
}),
// StoreLogMonitorModule,
StoreModule.provideStore(rootReducer)
]
// Enable HMR and ngrx/devtools in hot reload mode
if (process.env.NODE_ENV === 'development') imports.push(...[
StoreDevtoolsModule.instrumentStore({
monitor: useLogMonitor({
visible: false,
position: 'right'
})
}),
declarations: [
AppComponent,
PresentationComponent,
DashboardComponent,
LessonDetailsComponent,
ProfileComponent,
VideoSessionComponent,
ErrorMessageComponent,
JoinSessionDialogComponent,
],
imports: [
BrowserModule,
FormsModule,
HttpModule,
MaterialModule,
FlexLayoutModule.forRoot(),
routing,
],
providers: [
AuthenticationService,
UserService,
LessonService,
VideoSessionService,
AuthGuard,
],
entryComponents: [
JoinSessionDialogComponent,
],
bootstrap: [AppComponent]
})
export class AppModule { }
import { AuthService } from './services/auth.service';
import { HomeComponent } from './home/home.component';
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpModule,
routing,
TranslateModule.forRoot({
provide: TranslateLoader,
useFactory: (http: Http) => new TranslateStaticLoader(http, '/app/locales/', '.json'),
deps: [Http]
}),
MaterialModule.forRoot(),
FlexLayoutModule.forRoot(),
AlbumModule,
PhotoModule
],
declarations: [
AppComponent,
CreditsComponent,
AboutComponent,
HomeComponent,
ForbiddenComponent,
UnauthorizedComponent
],
providers: [
appRoutingProviders,
DialogService,
//LoginService
AuthService,
import 'ag-grid/dist/styles/theme-material.css'
import { MessageComponent } from './message.component'
import { ROUTES } from './message.routes'
@NgModule({
declarations: [
MessageComponent,
],
imports: [
CommonModule,
FormsModule,
MaterialModule.forRoot(),
FlexLayoutModule.forRoot(),
AgGridModule.withComponents([]),
RouterModule.forChild(ROUTES),
]
})
export class MessageModule {
constructor() { }
}
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [
AppComponent,
CustomViewView,
CustomNavigation,
],
imports: [
RESTAPIModule,
MaterialModule.forRoot(),
FlexLayoutModule.forRoot(),
],
providers: [
{ provide: APP_BASE_HREF, useValue: '/' },
{
provide: CONFIGURATION, useValue: {
BACKEND_URL: 'http://fake/Plone',
}
},
],
}).compileComponents();
}));