我正在尝试让ng-bootstrap与Angular 6配合使用,特别是选项卡式对话框。
将“按钮”带入选项卡式对话框后,角度就会崩溃。在执行该操作的示例中,它似乎是[(ngModel)] =“ model.left”语句。
该应用编译正常,但不会呈现到浏览器中。 在控制台或服务器控制台中没有错误消息出现。
<label class="btn-primary" ngbButtonLabel>
<input type="checkbox" formControlName="left" ngbButton [(ngModel)]="model.left"> Left
</label>
</div>
=======================
Angular CLI: 6.0.8
Node: 10.6.0
OS: darwin x64
Angular: 6.0.9
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/build-optimizer 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.8
@angular/cli 6.0.8
@ngtools/webpack 6.0.8
@schematics/angular 0.6.8
@schematics/update 0.6.8
rxjs 6.2.2
typescript 2.7.2
webpack 4.8.3