如何解决它是外部 ngx-bootstrap 模块的正确实现吗?
有没有比我的更好的方法可以从 AppModule 外包 ngx-b 模块?我可以对导入和导出 ngx-b 模块使用一个数组吗?
import { NgModule } from '@angular/core';
import { AlertModule } from 'ngx-bootstrap';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
import { TabsModule } from 'ngx-bootstrap';
import { CollapseModule } from 'ngx-bootstrap/collapse';
const bootstrapModulesI = [
AlertModule.forRoot(),BsDropdownModule.forRoot(),TabsModule.forRoot(),CollapseModule.forRoot()
];
const bootstrapModulesE = [
AlertModule,BsDropdownModule,TabsModule,CollapseModule
];
@NgModule({
imports: [
bootstrapModulesI
],exports: [
bootstrapModulesE
],declarations: []
})
export class BootstrapModule { }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。