AngularJS(yeoman生成器)使用ng-bootstrap库导入问题

问题描述 投票:0回答:1

我用yeoman发电机see there建造了一个角度项目

yo angular testapp

我用bower来安装ng-bootstrap库。

bower install ng-bootstrap 

通常,我将“.js”文件导入到我的“index.html”文件中,并将模块名称添加到我的“app.js”文件中,如下所示:

angular
  .module('testApp', [
    modules names...
  ])

我不知道我应该如何使用该库(找不到任何“.js”来包含)?我已经从ng-bootstrap官方网站和yeoman角度生成器发了红色文件,但我仍然坚持这个问题。

非常感谢您的意见或建议。

angularjs ng-bootstrap yeoman-generator-angular
1个回答
0
投票

可能是因为ng-bootstrap是为Angular(V2.X以后)构建的,并且基于typescript(.ts)。

AngularJS(V1.X)基于vanilla JS(.js)。听起来像你所追求的是ui-bootstrap

© www.soinside.com 2019 - 2024. All rights reserved.