我已经在controller.js.的一个作用域中存储了一个值,以便在html文件中获取该作用域值。如何获取从controller.js文件中的值到angularjs中的html文件
Controller.js
myAppCont.controller('Listvalue',['$scope','$rootScope','$http',
function($scope,$rootScope,$http){
city=$scope.val;
}]);
HTML
<div class="col-md-10" ng-controller="Listvalue">
<table class="table table-bordered table-style" id="statusTable">
<thead>
<tr>
<th>values</th>
</tr>
</thead>
<tbody class="align-center">
<tr>
<td>{{city}}</td>
</tr>
</tbody>
</table>
</div>
@Divakar检查样本 – Sajeetharan