<input type="text" value="123" ng-model="name">
<input type="text" value="123" ng-model="name" ng-init="name = '123';">
function Article() {
this.name = 'Default article name';
this.text = '# Some default article text\n\nSome paragraph';
}
angular
.module('app')
.service('Article', Article),
.controller('MainCtrl', function (Article) {
this.article = new Article();
}
;
$scope.name = '123