不确定原因,但是当我向我的应用添加jQuery时,离子断开。离子版依赖吗?我所做的只是bower install jQuery --save
然后将脚本引用添加到我的index.html
。运行应用程序时出现以下错误:
Error: [$compile:ctreq] Controller 'ionTabs', required by directive 'ionTabNav', can't be found!
http://errors.angularjs.org/1.2.22/$compile/ctreq?p0=ionTabs&p1=ionTabNav
at http://0.0.0.0:9000/bower_components/angular/angular.js:78:12
at getControllers (http://0.0.0.0:9000/bower_components/angular/angular.js:6524:19)
at http://0.0.0.0:9000/bower_components/angular/angular.js:6532:24
at forEach (http://0.0.0.0:9000/bower_components/angular/angular.js:325:18)
at getControllers (http://0.0.0.0:9000/bower_components/angular/angular.js:6531:11)
at nodeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6693:35)
at compositeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6086:13)
at publicLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:5982:30)
at link (http://0.0.0.0:9000/bower_components/ionic/release/js/ionic-angular.js:7563:61)
at nodeLinkFn (http://0.0.0.0:9000/bower_components/angular/angular.js:6692:13) <a ng-class="{'tab-item-active': isTabActive(), 'has-badge':badge, 'tab-hidden':isHidden()}" class="tab-item" title="Family Communication" icon="icon ion-android-social">