Articles → ANGULAR.JS → ng-init directive in angular.js

ng-init directive in angular.js






Purpose





Sample code




<div ng-app="" ng-init="name='sample name'">
        <p>
            Name:
            <input type="text" ng-model="name"></p>
        <p ng-bind="name">
        </p>
</div>





Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Thursday, May 14, 2015

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250