Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PropertyInputComponent,
RootComponent,
ScrollGroupDirective,
SplashScreenComponent,
SplitterComponent,
TimelineAnimationRowComponent,
ToolbarComponent,
ToolPanelComponent,
],
imports: [
BrowserModule,
BrowserAnimationsModule,
FlexLayoutModule,
FormsModule,
HttpClientModule,
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production }),
StoreModule.forRoot(reducers, { metaReducers }),
// Angular material components.
MatButtonModule,
MatDialogModule,
MatIconModule,
MatInputModule,
MatMenuModule,
MatOptionModule,
MatRadioModule,
MatSlideToggleModule,
MatSnackBarModule,
MatToolbarModule,
MatTooltipModule,
],
providers: [{ provide: ErrorHandler, useFactory: errorHandlerFactory }],
entryComponents: [ConfirmDialogComponent, DemoDialogComponent, DropFilesDialogComponent],
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
BrowserModule,
CoreModule,
SharedModule,
TranslateModule.forRoot(),
RouterModule.forRoot([]),
StoreModule,
EffectsModule,
ServiceWorkerModule.register('./ngsw-worker.js', {enabled: false})
],
declarations: [
AppComponent
],
providers: [
{provide: APP_BASE_HREF, useValue: '/'},
{provide: 'api.config', useValue: MocksUtil.createMockedApiConfig()},
{provide: 'defaultLanguage', useValue: 'en'},
MessageService,
SwUpdate
]
}).compileComponents();
}));
it('should create the app', async(() => {
if (SiteConfigConstants.apiBaseuri) {
return new namespaces.DemoWebApi_Controllers_Client.Heroes(SiteConfigConstants.apiBaseuri, http);
}
const _baseUri = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '') + '/';
return new namespaces.DemoWebApi_Controllers_Client.Heroes(_baseUri + 'webapi/', http);
}
@NgModule({
imports: [
BrowserModule,
FormsModule,
HttpClientModule,
AppRoutingModule,
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production })
],
declarations: [
AppComponent,
DashboardComponent,
HeroDetailComponent,
HeroesComponent,
HeroSearchComponent
],
providers: [
{
provide: namespaces.DemoWebApi_Controllers_Client.Heroes,
useFactory: clientFactory,
deps: [HttpClient],
},
],
LoginComponent,
RegisterComponent
],
imports: [
FormsModule,
ReactiveFormsModule,
CommonModule,
BrowserModule,
AppRoutingModule,
CKEditorModule,
GridsterModule.forRoot(),
NgZorroAntdModule,
HttpClientModule,
NzIconModule,
BrowserAnimationsModule,
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
],
providers: [
{ provide: NZ_I18N, useValue: en_US },
{ provide: HTTP_INTERCEPTORS, useClass: JwtInterceptor, multi: true },
{ provide: NZ_ICON_DEFAULT_TWOTONE_COLOR, useValue: '#00ff00' },
{ provide: NZ_ICONS, useValue: icons },
AuthGuard
],
bootstrap: [AppComponent]
})
export class AppModule { }
import { AppComponent } from './app-shell/app.component';
import { SvgIconComponent } from './utils/svg-icon/svg-icon.component';
import { UsersService } from './users/users.service';
import { UserListComponent } from './user-list/user-list.component';
import { ServiceWorkerModule } from '@angular/service-worker';
import { environment } from '../environments/environment';
@NgModule({
imports: [
BrowserModule,
BrowserAnimationsModule,
HttpClientModule,
CustomMaterialModule,
FlexLayoutModule,
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
],
declarations: [
AppComponent,
UserListComponent,
SvgIconComponent
],
providers: [ UsersService ],
bootstrap: [AppComponent]
})
export class AppModule { }
@NgModule({
declarations: [
AppComponent,
LegalDisclosureComponent,
PrivacyComponent
],
imports: [
BrowserModule,
SharedModule,
AppRoutingModule,
NgMetro4Module,
HighlightModule.forRoot({
languages: hljsLanguages
}),
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
NavbarComponent
],
imports: [
BrowserModule,
BrowserAnimationsModule,
AppRoutingModule,
FlexLayoutModule,
MatToolbarModule,
MatIconModule,
MatButtonModule,
MatMenuModule,
AngularFireModule.initializeApp(environment.firebase),
AngularFireFunctionsModule,
AngularFireAuthModule,
AngularFirestoreModule,
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production })
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
MatButtonToggleModule,
MatChipsModule,
MatIconModule,
MatProgressSpinnerModule,
MatProgressBarModule,
MatDialogModule,
MatTooltipModule,
MatSnackBarModule,
MatTableModule,
MatSortModule,
MatPaginatorModule,
AppRoutingModule,
ServiceWorkerModule.register('/ngsw-worker.js', {enabled: environment.production})
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { FivethreeCoreModule } from '@fivethree/core';
import { ServiceWorkerModule } from '@angular/service-worker';
import { environment } from '../environments/environment';
@NgModule({
declarations: [AppComponent],
entryComponents: [],
imports: [
BrowserModule,
IonicModule.forRoot({ mode: 'ios' }),
AppRoutingModule,
IonicStorageModule.forRoot(),
BrowserAnimationsModule,
FivethreeCoreModule,
ServiceWorkerModule.register('ngsw-worker.js', { enabled: environment.production })
],
providers: [
StatusBar,
SplashScreen,
Firebase,
AppState,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
import { NavigationItemsService } from './navigation/navigation-items.service';
import { MenuItem } from './navigation/menu-item';
import {AppConfig} from './app-config/app-config';
import {FlexLayoutModule} from '@angular/flex-layout';
import {ServiceWorkerModule} from '@angular/service-worker';
import {environment} from '../environments/environment';
import {MatIconModule, MatIconRegistry} from '@angular/material';
import {AdminModule} from './admin/admin.module';
import {CookieService} from 'ngx-cookie-service';
@NgModule({
declarations: [
AppComponent
],
imports: [
ServiceWorkerModule.register('/ngsw-worker.js', { enabled: environment.production }),
BrowserModule,
BrowserAnimationsModule,
FlexLayoutModule,
HttpClientModule,
routing,
FormsModule,
AlertsModule,
DatabaseModule,
AppConfigModule,
SessionModule,
UiModule,
SyncStatusModule,
LatestChangesModule,
NavigationModule,
UserModule,
DashboardModule,