のロードに失敗しました。ここディレクティブAngularjsはここtemplateurl
moduleDirectives
.directive('barNotification', ['$compile', '$timeout', function ($compile, $timeout) {
return {
restrict: 'E',
replace: true,
scope: {
barShow:'=',
barType: '=',
barMessage:'=',
barAllowClose:'=',
onClose: '&',
onOpenSlopeSetting: '&'
},
link: function (scope, element, attr) {
scope.contentElement = element;
scope.onCloseExists = 'onCloser' in attr;
scope.$watch('barMessage', function() {
$timeout(
function() {
angular.element(scope.contentElement[0].querySelector('#barMessage')).replaceWith($compile('<div id="barMessage">' + scope.barMessage + '</div>')(scope));
});
}, true);
},
templateUrl: '/Areas/Claim/Singlepage/directives/barnotification/barNotification.cshtml',
controller: 'barNotificationController'
};
}]);
あるアプリの負荷が、私は次のエラーを取得する場合は、プロジェクトディレクトリは
です。
[$コンパイル:tpload]をテンプレートの読み込みに失敗しました: /Areas/Claim/Singlepage/directives/barnotification/test.cshtml(HTTPステータス :403禁止)
私は何を逃しました?
私は、サーバーの応答が403であることに気付きます。ブラウザのファイルに直接アクセスしてファイルの内容を取得できますか? – nosthertus