0
這是我的索引頁templateUrl與自己的工作中AngularJs指令
<link href="~/Content/bootstrap.min.css" rel="stylesheet" />
<script src="~/Scripts/angular.min.js"></script>
<script src="~/Content/efDirective.js"></script>
<script src="~/Content/EmployeeForms.js"></script>
<html ng-app="AngularModule">
<body>
<div employee-form></div>
</body>
</html>
這是DirectiveJs
var app = angular.module("AngularModule", []);
app.directive("employeeForm", function() {
debugger;
return {
restrict: 'EA',
//template: 'helloworld',
templateUrl: 'Content/efTemplate.html'
}
});
含量efTemplate.html沒有顯示index.cshtml頁面上。