MD GHOUSE MD GHOUSE - 1 year ago 132
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">

<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>
<span ng-repeat="eee in Emp"> </span>
<br /><br />
<table class="table" style="margin-left:20px">
<th style="cursor:pointer"<b>Employee Name</b></th>
<tr ng-repeat="eee in Emp">
</table> </form>


Answer Source

Try this:

<span ng-repeat="eee in Emp">{{eee.Name}} </span>
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download