角度误差[$ compile:ctreq]

时间:2016-03-19 07:38:49

标签: javascript jquery angularjs ionic-framework

我试图用angularJS和ionic编写一个非常简单的制表符组件。 ionic-tab

如果我使用没有Jquery的组件,则angular会抛出异常。如果我将jquery包含在项目中,那么错误就会消失。

我认为我还没有在jquery上使用任何东西,真的不知道为什么会出现这个问题。

有没有人帮我查看我的代码? (git:ionic-tab

以下是重新编写问题的代码,codepen

    Error: [$compile:ctreq] Controller 'ion-simple-tabset', required by directive 'ionSimpleTab', can't be found!
http://errors.angularjs.org/1.4.3/$compile/ctreq?p0=ion-simple-tabset&p1=ionSimpleTab
    at http://code.ionicframework.com/nightly/js/ionic.bundle.js:13380:12
    at getControllers (http://code.ionicframework.com/nightly/js/ionic.bundle.js:21319:19)
    at nodeLinkFn (http://code.ionicframework.com/nightly/js/ionic.bundle.js:21466:33)
    at compositeLinkFn (http://code.ionicframework.com/nightly/js/ionic.bundle.js:20853:13)
    at publicLinkFn (http://code.ionicframework.com/nightly/js/ionic.bundle.js:20728:30)
    at boundTranscludeFn (http://code.ionicframework.com/nightly/js/ionic.bundle.js:20872:16)
    at controllersBoundTransclude (http://code.ionicframework.com/nightly/js/ionic.bundle.js:21489:18)
    at ngDirective.link (http://code.ionicframework.com/nightly/js/ionic.bundle.js:41190:5)
    at invokeLinkFn (http://code.ionicframework.com/nightly/js/ionic.bundle.js:21962:9)
    at nodeLinkFn (http://code.ionicframework.com/nightly/js/ionic.bundle.js:21462:11) <ng-transclude>

0 个答案:

没有答案