AngularJS - sakib03/Interview GitHub Wiki

Common Question

What are the key features of AngularJS?

Explain the different directives in Angular JS.

Explain services in AngularJS.

How will you boot AngularJS?

Explain $scope object in AngularJS.

What is a SPA in Angular JS?

What is dependency injection?

Explain different ways by which a directive can be invoked.

What are filters?

What is the difference between prefix $ and $$?

When the name of an object is prefixed with $ then it is public and when it is prefixed with $$ then the object is private.

How Angular JS routes work?

What is data binding in AngularJS?

What are the steps for the compilation process of HTML?

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

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

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

Explain the linking function and its types.

Explain the use of $routeProvider.

In Angular JS $routeProvider sets the URL configuration. It maps with the related ng-template or HTML page and attaches a controller with the same.

What is the digest cycle in AngularJS?