這是我在Index.cshtml無法獲得Angularjs NG-包括與網頁API MVC工作
<div ng-show="tab.isSet(1)" ng-include ="'show-employees.html'">
</div>
這是表演,employees.html
<h2>List of Employees</h2>
<div class="panel-body">
<table class="table table-bordered">
<tr>
<th>Id</th>
<th>FirstName</th>
<th>Age</th>
<th>Position</th>
<th>Salary</th>
<th>Department</th>
</tr>
<tr ng-repeat="employee in employees">
<td>{{employee.Id}}</td>
<td>{{employee.FirstName}}</td>
<td>{{employee.Age}}</td>
<td>{{employee.Position}}</td>
<td>{{employee.Salary}}</td>
<td>{{employee.Department}}</td>
</tr>
</table>
</div>
我試圖在index.html文件中包含show-employees.html選項卡,但我一直收到404錯誤。我認爲鏈接是問題。
我需要包括顯示-employees.html。有我的解決方案的打印屏幕在 – user3809781