Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript AngularJS剑道模板不工作_Javascript_Html_Angularjs_Kendo Ui - Fatal编程技术网

Javascript AngularJS剑道模板不工作

Javascript AngularJS剑道模板不工作,javascript,html,angularjs,kendo-ui,Javascript,Html,Angularjs,Kendo Ui,我有以下代码,但剑道列表不起作用。它打印[对象对象]的列表 (function () { 'use strict'; angular .module('prestart.core', [ /* third-party modules */ 'ui.router' ]); }()); (function () { 'use strict'; angular .module('presta

我有以下代码,但剑道列表不起作用。它打印
[对象对象]
的列表

(function () {
  'use strict';
  angular
    .module('prestart.core', [
      /*
        third-party modules
       */
      'ui.router'
    ]);
}());

(function () {
    'use strict';
    angular
        .module('prestart.home', []);
}());

(function () {
    'use strict';
    angular
        .module('prestart.services', []);
}());

(function () {
    'use strict';
    angular.module('prestart', [
        'prestart.core',
        'prestart.services',
        'prestart.home'

    ]);
}());

(function () {
    'use strict';
    angular
        .module('prestart')
        .config(function ($stateProvider, $urlRouterProvider, $compileProvider) {

            $compileProvider.debugInfoEnabled(false);
            $urlRouterProvider.otherwise('/');

            $stateProvider
                .state('home', {
                    url: '/home',
                    cache: false,
                    controller: 'PrestartCtrl as prestart',
                    templateUrl: 'www/src/home/prestart.html'
                })


        });
}());

(function () {
  'use strict';
  angular
    .module('prestart')
    .run(function($rootScope, $state){
        $state.go('home');
    });
}());

(function () {
    'use strict';
    angular
        .module('prestart.home')
        .controller('PrestartCtrl', PrestartCtrl);

    PrestartCtrl.$inject = ['$scope', 'dataLoaderService'];

    function PrestartCtrl($scope, $dataLoaderService) {
        var vm = this;
        vm.title = "Test title"
        vm.equipments = $dataLoaderService.loadPrestartData();
        return vm
    }
}());

(function () {
    'use strict';
    angular
        .module('prestart.services')
        .factory('dataLoaderService', dataLoaderService);


    function dataLoaderService() {

        return {
            loadPrestartData: loadPrestartData
        };

        // Implementation -----

        function loadPrestartData() {
            return [
                {
                    Description: 'Blah',
                    Category: 'Blah'     
                },
                {
                    Description: 'Blah 1',
                    Category: 'Blah 1'
                }
            ];
        }
    }
}());
index.html

<body ng-app="prestart">
  <div ui-view></div>
</body>

prestart.html

<kendo-mobile-list-view class="item-list" k-data-source="prestart.equipments">
   <div k-template>
       {{dataItem.Description}}
   </div>
</kendo-mobile-list-view>

{{dataItem.Description}

在多次撞击我的头之后,我发现当我导入而不是导入时,上面的代码是有效的


还是不知道为什么会这样!但现在起作用了

请向kendo提交一份支持单,让他们知道版本902有一个805没有的bug,以便他们可以修复它