Html:
<td>
<select id="selectboxHost" ng-model="logHostValue"
ng-options="host for host in logHosts"
ng-change="roleLogList(logHostValue)">
<!-- <option value="node">Node</option>-->
</select>
</td>
<td>
<select id="selectboxRole" ng-model="logRoleValue"
ng-options="role for role in logRoles">
<!--<option value="role">Role</option>-->
</select>
</td>
<td>
<select id="selectboxLevel" ng-model="logLevelValue">
<option value="Level">Level</option>
<option value="INFO">INFO</option>
<option value="WARN">WARN</option>
<option value="ERROR">ERROR</option>
<!--<option value="FETAL">FETAL</option>
<option value="CRITICAL">CRITICAL</option>-->
</select>
</td>
<td><button type="button" class="btn btn-default"
ng-click="resetLog()"><span class="cancelIcon"></span>Reset</button>
<button type="button" class="btn btn-default"
ng-click="filterLog(logHostValue,logRoleValue,logLevelValue)"><span
class="saveIcon"></span>Filter</button></td>
<td></td>
I am setting value of ng-model in controller onclick of Reset button.
$rootScope.logHostValue=$rootScope.logHosts[0];
$rootScope.logRoleValue=$rootScope.logRoles[0];
$rootScope.logLevelValue="Level";
But it is not selected. Can somebody has found this type of issue.
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.