📜  角度模块构建 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:17.796000             🧑  作者: Mango

代码示例2
@NgModule({
    imports: [ BrowserModule, HttpModule, FormsModule ],
    declarations: [ PersonComponent, ContactComponent, ContactListComponent ],
    providers: [ PersonService, ContactService ],
    exports: [ ContactListComponent, ContactComponent ]
})
export class ContactModule {}