AngularJS Interview Questions – Set 05

Explain $rootScope in AngularJS. Every AngularJS application contains a $rootScope, which is the top-most scope created on the DOM element. An application can contain only one $rootScope, which will be shared among all its components. Every other scope is considered as its child scope. It can watch expressions and propagate events. By using the root … Read more

AngularJS Interview Questions – Set 04

What do you understand by linking function? Explain its type. Link is used for combining the directives with a scope and producing a live view. The link function is used for registering DOM listeners as well as updating the DOM. The linking function is executed as soon as the template is cloned. There are two … Read more

AngularJS Interview Questions – Set 03

What is the module in AngularJS? A module is a container for the different parts of the application like a controller, services, filters, directives, etc. It is treated as a main() method. All the dependencies of applications are generally defined in modules only. A module is created using an angular object’s module() method. For example: var … Read more

AngularJS Interview Questions – Set 02

Describe the AngularJS boot process. When a page is loaded into the browser, several things happen: HTML document file gets loaded, and evaluated by the browser. AngularJS JavaScript file gets loaded, and the angular global object is created. Next, JavaScript file which is responsible for registering the controller functions is executed. AngularJS scans through the … Read more

AngularJS Interview Questions – Set 01

What is the factory method in AngularJS? Factory method is used for creating a directive. Whenever the compiler matches the directive for the first time, the factory method is invoked. Factory method is invoked using $injector.invoke. Syntax module.factory(‘factoryName’, function); What is the Global API in AngularJS? Global API is the combination of global JavaScript function, … Read more