How to bind data from two input (name and password) to the user object, so that they are its properties. I work in Angularjs.

    1 answer 1

    So:

    $scope.user = {}; <input type="text" ng-model="user.name"> <input type="password" ng-model="user.password">