javascript - AngularJS using UI-JQ with Two-Way Data Binding -
good evening,
i have small issue when trying create wizard form using jquery steps inside angularjs. can pass data plugin, cannot plugin send data controller. here how have setup:
jqconfig
myapp.value('uijqconfig', { steps: {} };
conroller
myapp.controller('mainctrl', function ($scope) { $scope.user = { name = "", address = "" }; $scope.wizardoptions = { onstepchanging: function (event, currentindex, newindex) { console.log($scope.user); } };
html template
<form ui-jq="steps" ui-options="wizardoptions"> <h1>step 1</h1> <div> <input ng-model="user.name" /> </div> <h1>step 2</h1> <div> <input ng-model="user.address" /> </div> </form>
i wizard load , everything. issue when type inputs, not update user object inside controller.
is there way can accomplish @ all? or should different solution?
thanks, joshua
Comments
Post a Comment