By Default, How to set ng-model value to an empty string
问题 Here is my code : <div ng-app="myApp" ng-controller="myCtrl"> Name: <input ng-model="myInput.name" /> age: <input ng-model="myInput.age" /> <pre> {{myInput | json}} </pre> </div> <script type="text/javascript"> angular.module('myApp', []) .controller('myCtrl', function($scope) { $scope.myInput = {}; }); </script> By Default, Empty string is not set to ng-model. By Default, How to set all of the myInput value to "" ? Here is the plnkr Update: Assume There are more than 100 myInput field. Shall