ng2-bootstrap 是 Angular 2 的扩展指令,实现了对 Bootstrap 框架的集成。
示例代码:
// RECOMMENDED (doesn't work with system.js) import { AccordionModule } from 'ng2-bootstrap/accordion'; // or import { AccordionModule } from 'ng2-bootstrap'; @NgModule({ imports: [AccordionModule.forRoot(),...] }) export class AppModule(){}