AngularJS

  Home  Client Side Scripting  AngularJS


“Sizzle Selector Engine job test questions and answers guide. The one who provides the best answers with a perfect presentation is the one who wins the job hunting race. Learn Sizzle JQuery Engine and get preparation for the new job”



57 AngularJS Questions And Answers

41⟩ What is data binding in Angular.js?

Automatic synchronization of data between the model and view components is referred as data binding in Angular.js.

There are two ways for data binding:

► Data mining in classical template systems

► Data binding in angular templates

 280 views

42⟩ On what steps for the compilation process of HTML happens?

Compilation of HTML process occurs in following ways:

► Using the standard browser API, first the HTML is parsed into DOM

► By using the call to the $compile () method, compilation of the DOM is performed. The method traverses the DOM and matches the directives.

► Link the template with scope by calling the linking function returned from the previous step

 278 views

43⟩ What Angular JS routes does?

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 Angular.js 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 Angular.js module.

Injecting a value into an Angular.js controller function is done by adding a parameter with the same name as the value.

 251 views

47⟩ What are the advantages of using Angular.js?

Angular.js has several advantages in web development:

► Angular.js supports MVS pattern

► Can do two ways data binding using Angular.js

► It has per-defined form validations

► It supports both client server communication

► It supports animations

 278 views

48⟩ What is Context in AngularJS?

In Angular, the expressions are evaluated against a scope object, while the Javascript expressions are evaluated against the global window.

 264 views

49⟩ Do you know what is services in Angular.js?

In angular.js services are the singleton 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.

 275 views

50⟩ Do you know what is scope in Angular.js?

Scope refers to the application model, it acts like glue between application controller and the view. Scopes are arranged in hierarchical structure and impersonate the DOM ( Document Object Model) structure of the application. It can watch expressions and propagate events.

 267 views

53⟩ What is Forgiving in AngularJS?

In Angular expression evaluation is forgiving to null and undefined, while in Javascript undefined properties generates TypeError or ReferenceError.

 244 views

57⟩ What is Angular Controllers?

Controller is constructor function in Angular Controller.

When a Controller is attached to the DOM with use the ng-controller, Angular will instantiate a new Controller object using constructor function.

 231 views