dependencies Legend  Declarations  Module  Bootstrap  Providers  Exports cluster_AppModule cluster_AppModule_declarations cluster_AppModule_imports cluster_AppModule_bootstrap cluster_AppModule_providers AppComponent AppComponent AppModule AppModule AppComponent->AppModule HeaderComponent HeaderComponent HeaderComponent->AppModule AppComponent AppComponent AppModule->AppComponent BrowserModule BrowserModule BrowserModule->AppModule FormsModule FormsModule FormsModule->AppModule HttpModule HttpModule HttpModule->AppModule AppRoutingModule AppRoutingModule AppRoutingModule->AppModule BookDetailModule BookDetailModule BookDetailModule->AppModule BookListModule BookListModule BookListModule->AppModule BooksService BooksService BooksService->AppModule

File

src/app/app.module.ts

Description

The main module that the app is bootstrapped with

All the required modules, components, services etc. must be registered here.

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

import { AppRoutingModule } from "app/app-routing.module";
import { BookDetailModule } from './book-detail/book-detail.module';
import { BookListModule } from './book-list/book-list.module';

import { AppComponent } from './app.component';
import { HeaderComponent } from './header/header.component';

import { BooksService } from "app/books.service";

/**
 * The main module that the app is bootstrapped with
 * 
 * All the required modules, components, services etc. must be registered here.
 */
@NgModule({
  declarations: [
    AppComponent,
    HeaderComponent
  ],
  imports: [
    BrowserModule, 
    FormsModule, 
    HttpModule, 
    AppRoutingModule, 
    BookDetailModule, 
    BookListModule
  ],
  providers: [BooksService],
  bootstrap: [AppComponent]
})
export class AppModule { }

results matching ""

    No results matching ""