What is data binding in AngularJS? |
Data binding is the finest feature of theAngularJS, It is the automatic synchronization of the data between the model and view components. Whereas the view is a projection of the modelthat change withmodel changes, and vice versa. |
Post/View Answer
Post comment
Cancel
Thanks for your comment.!
Write a comment(Click here) ...
|
What is AngularJS? |
AngularJS is open source, JavaScript based framework which simplify the creation of single page web application. |
Why to use AngularJS? |
1. Easy to maintain , open source and cross browser compatible |
Do I need jQuery for Angular? |
No, Angular has its own subset of jQuery calledjQLite. |
Explain major components of AngularJS? |
There are following major components of AngularJS Config: The config block represent module wise configuration settings for AngularJS application, whichapplied before application runs. Routes: Routes define a way between view loading and controller whereas multiple view can available on single page AngularJS application. Views: The view is UI DOM on user browserafter rendering ofAngularJS Htmlpage. Scope: It works between the view and controller within an AngularJS application and synchronize them. Controller: The controller is acts as bridge between services and views, and responsible for defining methods and properties that the view can bind toand interact. Directive: directive extend behaviour of Html elementand allow to create custom,reusable elements that encapsulate behaviour. Service: Services provide functionality to an AngularJS application and extend controllers and make them more globally accessible. |
What are Modules in AngularJS? |
AngularJS modules work ascontainers. They logically divide an angular app into small, reusable and functional components. Each module is identified by a unique name and can be dependent on other modules. |
What are directives in AngularJS? |
Directives are the AngularJS elements in Html tag that extend behaviour of Html element. All AngularJS directives start with the word "ng". |
|
What are the different types of directive in AngularJS? |
In Angular, types of directives depending on their implementation on HTML tag. |
What is controller in AngularJS? |
Controller is acting between the view and the services, whereas it is responsible for consuming data from services, processing data for display in the view, and transmitting data back to services for logic processing. |
What are services in AngularJS? |
AngularJS Services are the singleton functions or objects and used forprovide some functionality to the application. Services are prefixed with $ symbol and available globally to the entire application. Ex.$http service is used forserver-side communication, $resource serviceused for support RESTful web services |
|
What is scope in AngularJS? |
Scope is a JavaScript object which synchronize controller with the views. |
What is templateand view in AngularJS? |
HTML element that contains Angular-specific attributes and directives called template in AngularJS.Whereas a view is the HTML after template has been through the AngularJS compilation process |
Explain what are AngularJS routes does? |
AngularJS routes enable you to create different URLs for different content in your application page without reloading the entire application. Different URLs for different content enables user to bookmark URLs to specific content. In AngularJS each such bookmarkable URL is called a route. |
What are expressions in AngularJS? |
Expressions are the code snippets that resolves to a value and used tobind application data to html. AngularJS expressions are placed inside {{expression}}. |
What is the difference between AngularJS expressions and JavaScript expressions? |
The main difference between the JavaScript expressions and Angular expressions are: • TheJavaScript expressions are evaluated against the global window object, whereas in Angular the expressions are evaluatedagainst a scope object. • In JavaScript, undefined properties produces ReferenceError or TypeError, while In Angular expression evaluation is forgiving to undefined and null. • AngularJS expression doesn’t support loop, condition and exception, while java script do. • In AngularJS, filters can be used with expression to format data before displaying it but in JavaScript we can’t. |
What is the use of filter in AngularJS? |
A filter is used to format the value of expression to display the formatted output. AngularJS enables us to write our own filter. |
How to validate form data in AngularJS? |
AngularJS has enriches client-side form filling validation. It support HTML 5 validations and also allow to creationof custom validation to validate data. |