dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_HomeModule cluster_HomeModule_declarations cluster_HomeModule_imports cluster_HomeModule_exports HomeComponent HomeComponent HomeModule HomeModule HomeComponent->HomeModule HomeComponent HomeComponent HomeModule->HomeComponent FooterModule FooterModule FooterModule->HomeModule HeaderModule HeaderModule HeaderModule->HomeModule HomeRoutingModule HomeRoutingModule HomeRoutingModule->HomeModule ListModule ListModule ListModule->HomeModule

File

src/app/home/home.module.ts

Description

The header module

Just embedding component and it's routing definition in HomeRoutingModule

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

import { HomeComponent } from './home.component';
import { HomeRoutingModule } from './home-routing.module';

import { HeaderModule } from '../header/';
import { ListModule } from '../list/';
import { FooterModule } from '../footer/';

/**
 * The header module
 *
 * Just embedding <home> component and it's routing definition in {@link HomeRoutingModule}
 */
@NgModule({
    declarations: [HomeComponent],
    imports: [
        BrowserModule,
        FormsModule,
        HttpClientModule,

        HeaderModule.forRoot(),
        ListModule,
        FooterModule,
        HomeRoutingModule
    ],
    exports: [HomeComponent]
})
export class HomeModule {}

results matching ""

    No results matching ""