Skip to content

Instantly share code, notes, and snippets.

@rahulsahay19
Created November 14, 2017 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rahulsahay19/2bc97ae7ea30eecd3764577ed190097b to your computer and use it in GitHub Desktop.
Save rahulsahay19/2bc97ae7ea30eecd3764577ed190097b to your computer and use it in GitHub Desktop.
dynamic.module
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