Tag: angular ui bootstrap

如何使用angular-ui模式templateURL和节点/快速路由

我有点困惑,为什么我得到这个错误。 我有一个预感与templateURL,我已经尝试了一些事情,但无济于事。 我已经阅读了文档,并search了一堆SOpost,但没有一个帮助太大。 我想使用Express / Node来提供页面,我有一种感觉,这就是为什么我的templateURL不能在app.js工作。 这是我的index.html与我的控制器和我的模板。 <body ng-app="app" ng-controller="AppCtrl"> <script type="text/ng-template" id="pageContent.html"> <div class="container"> <div class="modal-header"> <h3 class="modal-title">I am a modal!</h3> </div> <div class="modal-body"> <h1>HELLO</h1> </div> <div class="modal-footer"> <button class="btn btn-primary" type="button" ng-click="cancel()">OK</button> <button class="btn btn-warning" type="button" ng-click="cancel()">Cancel</button> </div> </div> </script> <div ng-click="open()"> <!– this is what makes the modal –> <!– rest of […]

Angular-ui Bootstrap错误要求没有定义

我正在实施angular-ui旋转木马。 在将jspm包添加到现有项目后,我在控制台中看到以下错误。 :3000/jspm_packages/bower/angular-ui/bootstrap@1.2.2/index.js:3未捕获的ReferenceError:require未定义$ @ system.js:4 system.js:4未捕获的未捕获的ReferenceError:require未定义评估本地主机:3000/jspm_packages/bower/angular-ui/bootstrap@1.2.2/index.js$ @ system.js:4本地主机/:1未捕获(承诺)未捕获未捕获ReferenceError:需求未定义评估本地主机:3000 / jspm_packages/bower/angular-ui/bootstrap@1.2.2/index.js评估localhost:3000/jspm_packages/bower/angular-ui/bootstrap@1.2.2.js加载localhost:3000 / js / bootstrap.js时出错