我目前正在尝试使用ui-bootstrap-0.9.0.min.js的'tabset‘标签创建一组标签,但eclipse一直将其标记为未知标签。当我在浏览器上启动页面时,我得到的结果是{{tabcontent}}。下面是我如何调用bootstrap脚本以及如何调用tabset标记。我做错了什么?
<script src="jscripts/js/ui-bootstrap-0.9.0.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="css/custom.css">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.js"></script>
<script src="jscripts/profile.js"></script>
<tabset>
<tab ng-repeat="tab in tabs" heading="{{tab.title}}" active="tab.active" disabled="tab.disabled">{{tab.content}}</tab>
</tabset>
发布于 2019-09-25 10:25:36
安装ngx-bootstrap
npm i ngx-bootstrap
在您的模块中导入TabsModule
,即app.module.ts
import { TabsModule } from "ngx-bootstrap/tabs";
@NgModule({
declarations: [],
imports: [
// ...
TabsModule
// ...
]
})
export class ProjectsModule { }
https://stackoverflow.com/questions/25996436
复制相似问题