我已经使用yeoman生成器see there构建了一个angular项目
yo angular testapp我已经使用bower安装了ng-boostrap库。
bower install ng-bootstrap 通常,我将".js“文件导入到"index.html”文件中,并将模块名称添加到"app.js“文件中,如下所示:
angular
.module('testApp', [
modules names...
])我不知道该如何使用这个库(找不到任何要包含的".js“)?我已经从ng-bootstrap官方网站和yeoman angular生成器那里获取了文档,但是我仍然被这个问题困扰着。
我们非常感谢您的意见和建议。
发布于 2019-02-24 08:14:23
可能是因为ng-bootstrap是为Angular (V2.X及更高版本)构建的,并且基于typescript (.ts)。
AngularJS (V1.X)基于普通的JS (.js)。听起来你要找的是ui-bootstrap
https://stackoverflow.com/questions/54835102
复制相似问题