MD GHOUSE MD GHOUSE - 3 months ago 33
AngularJS Question

Using Angularjs how to bind value in Span

Here why span is not showing binding values.Here my intenssion is my span has to work as label

<div ng-controller="MydrpCntrl">
<form>

<select class="form-control" ng-options="I.EmployeeId as I.EmployeeId for I in EmployeeList" ng-model="EmployeeId" ng-change="GetEmployees()">

<option value="">Select Employee Id</option>
</select>
<span ng-repeat="eee in Emp"> </span>
<br /><br />
<table class="table" style="margin-left:20px">
<tr>
<th style="cursor:pointer"<b>Employee Name</b></th>
</tr>
<tr ng-repeat="eee in Emp">
<td>
{{eee.EmployeeeName}}
</td>
</tr>
</table> </form>


</div>

Answer

Try this:

<span ng-repeat="eee in Emp">{{eee.Name}} </span>
Comments