How to inherit a module from another module in Angular2?
问题 So I'm using Angular 2 final (2.0.0) and let's say i create a WidgetsModule with a bunch of directives and components that will help me build my application, and then import it in my AppModule import { NgModule } from '@angular/core'; import { UniversalModule } from 'angular2-universal'; import { WidgetsModule } from '../../../widgets'; import { App, appRouting } from './'; @NgModule({ imports: [ UniversalModule, WidgetsModule, appRouting ], providers: [ AppPresenter ], declarations: [ App ],