Created
November 14, 2017 18:48
-
-
Save rahulsahay19/2bc97ae7ea30eecd3764577ed190097b to your computer and use it in GitHub Desktop.
dynamic.module
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import {FormsModule } from '@angular/forms' | |
import DynamicComponent from './dynamic.component'; | |
import { MoviesComponent } from './movies/movies.component'; | |
import { MoviesService } from './movies/movies.service'; | |
import { CommonModule } from '@angular/common'; | |
import { HttpModule } from '@angular/http'; | |
import { routes } from './dynamic-routing.module'; | |
import { SampleComponent } from './sample.component'; | |
import SampleModule from './sample.module'; | |
@NgModule({ | |
declarations: [ | |
DynamicComponent, | |
MoviesComponent, | |
SampleComponent | |
], | |
imports: [ | |
CommonModule, | |
routes, | |
FormsModule, | |
HttpModule, | |
SampleModule ], | |
providers:[MoviesService] | |
}) | |
export default class DynamicModule { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment