It is simple i know but just bugging me i got the following code
<label>Role</label><div>
<select ng-change="save()" ng-model="frm.TypeID">
<option ng-value="">Select Role</option>
<option ng-value="1" value="1">Admin</option>
<option ng-value="3" value="3">User</option>
<option ng-value="2" value="2">Guest</option>
</select>
I get the ng-value from the database but can not update it via the controller so how can i do something like
angular.controller('testCtrl',['$scope', function($scope){
$scope.select=function(){
$scope.frm.TypeID = 3;
}
}]);
Thanks