dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AppModule cluster_AppModule_imports cluster_AppModule_providers cluster_AppModule_bootstrap cluster_AppModule_declarations AppComponent AppComponent AppModule AppModule AppComponent->AppModule AppComponent AppComponent AppModule->AppComponent AppRoutingModule AppRoutingModule AppRoutingModule->AppModule HomeModule HomeModule HomeModule->AppModule NoopInterceptor NoopInterceptor NoopInterceptor->AppModule TodoStore TodoStore TodoStore->AppModule

File

src/app/app.module.ts

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { HTTP_INTERCEPTORS } from '@angular/common/http';

import { HomeModule } from './home/';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';

import { TodoStore } from './shared/services/todo.store';
import { NoopInterceptor } from './shared/interceptors/noopinterceptor.interceptor';

@NgModule({
    declarations: [AppComponent],
    imports: [BrowserModule, HomeModule, AppRoutingModule],
    providers: [
        TodoStore,
        {
            provide: HTTP_INTERCEPTORS,
            useClass: NoopInterceptor,
            multi: true
        }
    ],
    bootstrap: [AppComponent]
})
export class AppModule {}

results matching ""

    No results matching ""