ng2-bootstrap Angular 集成 Bootstrap 项目简介
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(){}
import { AccordionModule } from 'ng2-bootstrap/accordion';
// or
import { AccordionModule } from 'ng2-bootstrap';
@NgModule({
imports: [AccordionModule.forRoot(),...]
})
export class AppModule(){}