Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ShellComponent } from './home/shell.component';
import { MenuComponent } from './home/menu.component';
import { WelcomeComponent } from './home/welcome.component';
import { PageNotFoundComponent } from './home/page-not-found.component';
/* Feature Modules */
import { UserModule } from './user/user.module';
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
HttpClientInMemoryWebApiModule.forRoot(MovieData, { delay: 1000, dataEncapsulation: false }),
UserModule,
AppRoutingModule
],
declarations: [
AppComponent,
ShellComponent,
MenuComponent,
WelcomeComponent,
PageNotFoundComponent
],
bootstrap: [AppComponent]
})
export class AppModule { }
@NgModule({
declarations: [
AppComponent,
PokedexComponent,
HomepageComponent
],
imports: [
BrowserModule.withServerTransition({ appId: 'serverApp' }),
AppRoutingModule,
HttpClientModule,
// The HttpClientInMemoryWebApiModule module intercepts HTTP requests
// and returns simulated server responses.
HttpClientInMemoryWebApiModule.forRoot(
PokemonService, { dataEncapsulation: false }
)
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
import { ShellComponent } from './home/shell.component';
import { MenuComponent } from './home/menu.component';
import { WelcomeComponent } from './home/welcome.component';
import { PageNotFoundComponent } from './home/page-not-found.component';
/* Feature Modules */
import { UserModule } from './user/user.module';
/* NgRx */
import { StoreModule } from '@ngrx/store';
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
HttpClientInMemoryWebApiModule.forRoot(ProductData),
UserModule,
AppRoutingModule,
StoreModule.forRoot({})
// StoreModule.forRoot({},
// {
// runtimeChecks: {
// strictStateImmutability: true,
// strictActionImmutability: true,
// strictStateSerializability: true,
// strictActionSerializability: true
// }
// })
],
declarations: [
AppComponent,
ShellComponent,
import { PageNotFoundComponent } from './home/page-not-found.component';
/* Feature Modules */
import { UserModule } from './user/user.module';
/* NgRx */
import { StoreModule } from '@ngrx/store';
import { StoreDevtoolsModule } from '@ngrx/store-devtools';
import { environment } from '../environments/environment';
import { EffectsModule } from '@ngrx/effects';
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
HttpClientInMemoryWebApiModule.forRoot(MovieData),
UserModule,
AppRoutingModule,
StoreModule.forRoot({}),
StoreDevtoolsModule.instrument({
name: 'Movie Hunter DevTools',
maxAge: 25,
logOnly: environment.production,
}),
EffectsModule.forRoot([])
],
declarations: [
AppComponent,
ShellComponent,
MenuComponent,
WelcomeComponent,
PageNotFoundComponent
import { NgModule } from '@angular/core';
import { AppModule } from './app.module';
import { AppComponent } from './app.component';
import { HttpClientInMemoryWebApiModule, InMemoryDbService } from 'angular-in-memory-web-api';
import { InMemoryDataService } from '../in-memory-data.service';
@NgModule({
imports: [
AppModule,
// The HttpClientInMemoryWebApiModule module intercepts HTTP requests
// and returns simulated server responses.
HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {
dataEncapsulation: false,
delay: 0,
passThruUnknownUrl: true
})
],
providers: [{ provide: InMemoryDataService, useExisting: InMemoryDbService }],
bootstrap: [AppComponent]
})
export class AppDevModule {}
AppComponent,
HeroesComponent,
HeroDetailComponent,
MessagesComponent,
DashboardComponent,
HeroSearchComponent
],
imports: [
BrowserModule,
FormsModule,
AppRoutingModule,
HttpClientModule,
// The HttpClientInMemoryWebApiModule module intercepts HTTP requests
// and returns simulated server responses.
// Remove it when a real server is ready to receive requests.
HttpClientInMemoryWebApiModule.forRoot(
InMemoryDataService, { dataEncapsulation: false }
)
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { ShellComponent } from './home/shell.component';
import { MenuComponent } from './home/menu.component';
import { WelcomeComponent } from './home/welcome.component';
import { PageNotFoundComponent } from './home/page-not-found.component';
/* Feature Modules */
import { UserModule } from './user/user.module';
@NgModule({
imports: [
BrowserModule,
HttpClientModule,
HttpClientInMemoryWebApiModule.forRoot(MovieData),
UserModule,
AppRoutingModule
],
declarations: [
AppComponent,
ShellComponent,
MenuComponent,
WelcomeComponent,
PageNotFoundComponent
],
bootstrap: [ AppComponent ]
})
export class AppModule { }
Simplefilms4Component,
SimpleFilmsComponent,
SwPeopleComponent,
SwPeopleFindComponent,
TakeUntilComponent,
TakeWhileComponent,
WhipwheehwComponent,
WikipediaComponent,
],
imports: [
BrowserModule,
OnoffbuttonModule,
HttpClientModule,
ReactiveFormsModule,
HttpClientJsonpModule,
HttpClientInMemoryWebApiModule.forRoot(InMemoryDataService, {
passThruUnknownUrl: true
}),
RouterModule.forRoot(routes),
SeNeonModule
],
providers: [
ButtonbarService,
GiphyService,
RakiService,
SwPeopleService,
SwUrlService,
TimeService,
WikipediaService
],
bootstrap: [AppComponent]
})
ProposalComponent,
ProposalDetailComponent,
MessagesComponent,
DashboardComponent,
ProposalSearchComponent,
AboutComponent,
ProtocolComponent,
ProposalFormComponent,
RecentUpdatesComponent
],
imports: [
BrowserModule,
FormsModule,
AppRoutingModule,
HttpClientModule,
HttpClientInMemoryWebApiModule.forRoot(
InMemoryDataService, { dataEncapsulation: false }
)
],
providers: [ProposalService, MessageService],
bootstrap: [AppComponent]
})
export class AppModule { }
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api';
import { CartTestingModule } from '../cart/testing/cart-testing.module';
import { MockService } from '../mock/services/mock.service';
import { ProductTestingModule } from '../product/testing/product-testing.module';
@NgModule({
imports: [
HttpClientModule,
HttpClientInMemoryWebApiModule.forRoot(MockService),
ProductTestingModule,
CartTestingModule
]
})
export class MockModule { }