Who created Angular JS ?
Answer:
Intially it was developed by Misko Hevery and Adam Abrons. Currently it is being developed by Google.
ViewExplain what is the difference between AngularJS and backbone.js?
Answer:
AngularJS combines the functionalities of most of the 3rd party libraries, it supports individual functionalities required to develop HTML5 Apps. While Backbone.js do their jobs individually.
ViewExplain the concept of scope hierarchy? How many scope can an application have?
Answer:
Each angular application consist of one root scope but may have several child scopes. As child controllers and some directives create new child scopes, application can have multiple scopes. When new scopes are formed or created they are added as a children of their parent scope. Similar to DOM, they also creates a hierarchical structure.
ViewMention what are the advantages of using Angular.js framework ?
Answer:
Advantages of using Angular.js as framework are
Explain what is DI (Dependency Injection ) and how an object or function can get a hold of its dependencies ?
Answer:
DI or Dependency Injection is a software design pattern that deals with how code gets hold of its dependencies. In order to retrieve elements of the application which is required to be configured when module gets loaded , the operation “config” uses dependency injection.
These are the ways that object uses to hold of its dependencies
Mention what are the characteristics of “Scope”?
Answer:
Mention what are the styling form that ngModel adds to CSS classes ?
Answer:
ngModel adds these CSS classes to allow styling of form as well as control
Explain what is factory method in AngularJS?
Answer:
For creating the directive, factory method is used. It is invoked only once, when compiler matches the directive for the first time. By using $injector.invoke the factory method is invoked.
ViewExplain what is the difference between link and compile in Angular.js?
Answer:
Explain what is injector?
Answer:
An injector is a service locator. It is used to retrieve object instances as defined by provider, instantiate types, invoke methods and load modules. There is a single injector per Angular application, it helps to look up an object instance by its name.
ViewExplain what is linking function and type of linking function?
Answer:
Link combines the directives with a scope and produce a live view. For registering DOM listeners as well as updating the DOM, link function is responsible. After the template is cloned it is executed.
Explain what is directive and Mention what are the different types of Directive?
Answer:
During compilation process when specific HTML constructs are encountered a behaviour or function is triggered, this function is referred as directive. It is executed when the compiler encounters it in the DOM.
Different types of directives are
Mention the steps for the compilation process of HTML happens?
Answer:
Compilation of HTML process occurs in following ways
Explain what is string interpolation in Angular.js ?
Answer:
In Angular.js the compiler during the compilation process matches text and attributes using interpolate service to see if they contains embedded expressions. As part of normal digest cycle these expressions are updated and registered as watches.
ViewWhat makes AngularJS better ?
Answer:
Explain what is data binding in AngularJS ?
Answer:
Automatic synchronization of data between the model and view components is referred as data binding in AngularJS. There are two ways for data binding
Explain what Angular JS routes does ?
Answer:
Angular js routes enable you to create different URLs for different content in your application. Different URLs for different content enables user to bookmark URLs to specific content. Each such bookmarkable URL in AngularJS is called a route
A value in Angular JS is a simple object. It can be a number, string or JavaScript object. Values are typically used as configuration injected into factories, services or controllers. A value should be belong to an AngularJS module.
Injecting a value into an AngularJS controller function is done by adding a parameter with the same name as the value
ViewMention what are the advantages of using AngularJS ?
Answer:
AngularJS has several advantages in web development.
Explain what are directives ? Mention some of the most commonly used directives in AngularJS application ?
Answer:
A directive is something that introduces new syntax, they are like markers on DOM element which attaches a special behavior to it. In any AngularJS application, directives are the most important components.
Some of the commonly used directives are ng-model, ng-App, ng-bind, ng-repeat , ng-show etc.
ViewWith options on page load how you can initialize a select box ?
Answer:
You can initialize a select box with options on page load by using ng-init directive
© 2017 QuizBucket.org