Ng-Init

 
 
 
<!DOCTYPE html> <html lang="en-US"> <head> <title>Welcome in the Angular JS</title> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.0-rc.1/angular.min.js"></script> </head> <body ng-app> <div> Enter your name <input type="text" ng-init="name='Default Name'" ng-model="name" /> Your name is <span ng-bind="name"></span> </div> </body> </html>
Output