Hi Guest 1 HomePage 1 Jobs 1 WalkIn 1Articles  

 :) Latest Topic
Numbers And Strings
Objects And Array
AngularJS VS JavaScript
Controllers in Files
Load the Library
AngularJS Directives
Repeating Directive
AngularJS Facts
Create Directives
Restrict Directive
Custom Filter
AngularJS Services
AngularJS Service 2
AngularJS Tables
Select Option
Select Option 2
AngularJS Forms
Form Validation
Validation CSS
Validation Example
AngularJS API
AngularJS $http
AngularJS Database
AngularJS HTML DOM
AngularJS Events
Custom Validation
AngularJS Tutorial
AngularJS Introduction
Angular init Directive
AngularJS Expressions 1
AngularJS Applications
AngularJS Expressions 2
Angular CSS Properties
AngularJS JSON
AngularJS Modules
Controller Basic
Add a Directive
Model Directive
Validate Inputs
CSS Classes
Data Binding
AngularJS Controller
AngularJS Scope
Root of Scope
AngularJS Filters
 


  

 
AngularJS Facts
Question Posted on 09 Apr 2020

Home >> Tutorial >> AngularJS >> AngularJS Facts


AngularJS Facts
Below are the some facts about the ng-app, ng-init and ng-model.
(1)The ng-app Directive:-The ng-app directive defines the root element of an AngularJS application. Other fact about the ng-app is the this directive will auto-bootstrap the application when web page is loaded.

(2)The ng-init Directive:-We will use ng-init directive to initial values for AngularJS Applications. We will not use ng-init normally in place of ng-init we can use controller or module in place of ng-init.

(3)The ng-model Directive:-With the ng-model directive we will binds value of HTML controls like input, select, and textarea to application data. With the help of ng-model directive we do below things:-
(i)It will provide type validation for application data and validation can be of number, email or required types.
(ii)It will helps in providing status for application data and tell the status for invalid, dirty, touched or for error.
(iii)It will helps to provide CSS classes for HTMl elements.
(iv)It will bind HTMl elements to HTML forms.





Other Important Questions
Numbers And Strings
Objects And Array
AngularJS VS JavaScript
Controllers in Files
Load the Library







 
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 |