我需要与我公司的其他项目共享一个自定义角度2模块.
例如:
@NgModule({ declarations: [ AppComponent,BannerInlineComponent,WelcomeComponent ],imports: [ BrowserModule,FormsModule,HttpModule ],providers: [],bootstrap: [AppComponent] }) export class SpecialModule { }
现在,我想在其他项目中使用它:
npm install my-special --save
并使用:
import { SpecialModule } from 'my-special';