i want to change the dropdown options dynamically on click of button
HTML Code
<ul data-role="listview" data-inset="true">
<li ng-controller="exerciseTypeCtrl">
<select id="exerciseType" data-role="listview" ng-options="type as type.text for type in types.cast " ng-model="item" ng-change="update()">
</select>
</li>
</ul>
Using This JS
var myApp = angular.module('myApp',[]);
myApp.controller('exerciseTypeCtrl',function($scope,indoors,outdoors)
{
$scope.types = indoors;
$scope.update = function() {
}
});
By Default I bind data indoors
and I want to bind outdoors
data on ng-click event so drop down updates dynamically
I need Help on this issue
indoors
that already bind and other isoutdoors
that i want to replace on click event i am new in angular-js – SpookyMindz Sep 21 at 11:48