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

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -