小编krs*_*krs的帖子

Angular JS错误:$ compile:tpload:无法加载模板:

所以我试图在我的指令中加载模板.该指令是可重用的.但我无法加载模板.我有其他模板加载并正常工作.

我得到的错误是:

GET /ClassificationToolkitForGrails/classificationviewer.html 404 (Not Found) angular.js:8521
Error: [$compile:tpload] Failed to load template: classificationviewer.html
Run Code Online (Sandbox Code Playgroud)

包含指令的javascript文件:

/**
 * 
 */
var classificationViewModule = angular.module('ald.classificationview',[]);

classificationViewModule.factory('classificationAPI',function(){
    return {
        getClassification:function($http, artifactId){
            //TODO add URL
            var url = "/Classification/getInfo?artifactId="+artifactId
            return $http({
                method: 'GET',
                url: url
            });
        }
    };
});

/*classificationViewModule.controller('testclassification',['$scope','$http',function($scope,$http){
    $http.get("/Classification/getInfo?artifactId=6450").success(function(data){
        $scope.classification = data;       
    })
}]);*/

classificationViewModule.directive('classificationview', function () {
    return {
        restrict: 'EA',
        scope: {},
        replace: true,
        link: function ($scope, element, attributes) {

        },
        controller: function ($scope, $http, classificationAPI) …
Run Code Online (Sandbox Code Playgroud)

javascript templates angularjs

7
推荐指数
2
解决办法
4万
查看次数

Oracle XE v SQL Developer之间的区别

我对Oracle XE和SQL Developer感到困惑?两者之间的主要区别是什么?我假设Oracle XE是数据库,而SQL Developer就像IDE一样执行查询?

oracle oracle-xe oracle-sqldeveloper

0
推荐指数
1
解决办法
5091
查看次数