Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 
Camera Offer Dhoti Patiyala


What is use of ng-init directive in angular
Question Posted on 03 Apr 2020

Home >> Angular >> Angular FAQ >> What is use of ng-init directive in angular




What is use of ng-init directive in angular
ng-init directive initializes AngularJS application variables. We will use ng-init to initializes some values. We can alse use data-ng-, inplace of ng-, if we need to make our page HTML valid.

Below is the syntax to use ng-init:-

< div data-ng-app="" data-ng-init="websitename='crackyourinterview'">
< p>The name is < span data-ng-bind="websitename"> < /span> < < /p>
< /div>
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Provide name of some inbuilt angular filters ?
What is Transpiling in Angular?
Define the ng-content Directive
Define ng-if directive
Write down 11 main difference between Angular and React?






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |