What Are The Advantages of Using Angular - Js Framework?
What Are The Advantages of Using Angular - Js Framework?
2. What is Module?
3. What is scope ?
Scope is an single ton object that can perform data binding through view and model
using controller.
6. What is directives ?
Directive is a extended HTML attribute that can perform a specific task for the
application.
Example -
elem.bind('click',function(){
elem.size = 1000px;
});
});
The ng-model 2 way data binding. Model -------> View & View ----------> Model
The ng-bind onw way data binding. Model -------> View
The ng-model directive binds the value of HTML controls (input, select, text-area).
The ng-bind directive tells Angular JS to replace the content of an HTML element
with the value of a given variable, or expression.
If the value of the given variable, or expression, changes, the content of the specified
HTML element will be changed as well.
10. What is the difference between link and compile in Angular JS?
Compile function is used for template DOM Manipulation and to collect all the
directives.
Link function is used for registering DOM listeners as well as instance DOM
manipulation and is executed once the template has been cloned.
Services are the singleton constructor objects or functions that are used for carrying
out specific tasks. It holds some business logic and these function can be called as
controllers, directive, filters and so on.Which are instantiated only once in app.
Service is a constructor object . Service use for single instance. Its return instance of
object
Factory singleton objects.Its use for multiple instance. Its return value. Value may be
object
Provider singleton objects.Its return value of its $get object. Provider is only
configurable service.
http://stackoverflow.com/questions/15666048/angularjs-service-vs-provider-vs-
factory
It is a five-step process:
18. Set Timeout , $timeout concept how we can handle core JavaScript in
angular environment ?