Angular JS

AngularJS is a JavaScript-based open-source front-end web framework. It's gaining traction in last few year. There is a good demand for certified AngularJS professionals in the IT industry. If you are having an Interview scheduled in near future, then you must checkout these interview questions.

Q.1 What do you understand by services in AngularJS ?

AngularJS services are the singleton objects or functions used for carrying out specific tasks.

Such that it holds some business logic and these function which are referred as controllers, directive, filters and so on.

Q.2 How would you explain scope in AngularJS ?

We can define scope as the application model, that acts like glue between the application controller and the view. Such that scopes are arranged in a hierarchical structure and impersonate the DOM ( Document Object Model) structure of the application. The scope can watch expressions and propagate events.

Q.3 What are the features of Angular JS routes?
Some of the features of AngularJS routes are -
1. Angular js routes enable 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
2. Value in Angular JS is a simple object. This 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.
3. Also injecting a value into an AngularJS controller function is done by adding a parameter with the same name as the value
Q.4 Give reason why AngularJS is better ?
AngualrJS is considered better because of the given reasons -
1. No need to register callbacks . This makes your code simple and easy to debug.
2. Every application that are created using Angular never have to manipulate the DOM although it can be done if it is required
3. AngularJS helps to eliminate almost all of the boiler plate like validating the form, displaying validation errors, returning to an internal model and so on which occurs due to flow of marshalling data
4. AngularJS can bootstrap your app easily using services, which auto-injected into your application
Q.5 What do you understand by string interpolation in Angular.js ?

Angular.js is the compiler during the compilation process that matches text and attributes using interpolate service to see if they contains embedded expressions.

Such that as part of normal digest cycle these expressions are updated and registered as watches.

Q.6 What is injector?

An injector is defined as a service locator. Injector 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, that helps to look up an object instance by its name.

Q.7 Differentiate between link and compile in Angular.js?
Compile function in Angular.jsis used for template DOM Manipulation and collect all of the directives. On the other hand link function is used for registering DOM listeners as well as instance DOM manipulation. It is executed once the template has been cloned.
Q.8 Describe the function scope in AngularJS.
The scope can be considered as an application model that acts as a glue between the application controller and the view. Scopes are arranged in a hierarchical structure and impersonate the DOM (Document Object Model) structure of the application. This can watch expressions and propagate events.
Q.9 Explain the term services in AngularJS.
AngularJS services are the singleton objects or functions that are used for executing specific tasks. It holds some business logic.
Q.10 Define directives. Name some of the used directives in AngularJS application.
A directive can be defined as something that introduces new syntax. They are like markers on the Document Object Model (DOM) element, which connects special behavior to it. In an angular js application, directives are the most important components. However, some of the used directives are: Ng-model ng-App ng-bind ng-repeat ng-show
Q.11 Defining linking function and its types.

Link merges the directives with a scope and produces a live view. However, the link fountain is responsible for registering Document Object Model (DOM( listeners as well as for updating the DOM. And, it is executed after the template is cloned. The types include:

1. Pre-linking function This is executed before the child elements are linked. It is not considered a safe way for DOM transformation.

2. Post linking function This is executed after the child elements are linked. It is safe to do DOM transformation by post-linking function

Q.12 Define Dependency Injection. Explain how an object or function can get a hold of its dependencies?

Dependency Injection refers to a software design pattern that deals with how code gets hold of its dependencies. In order for retrieving elements of the application which is needed to be configured when the module gets loaded, the operation "config" uses dependency injection. Further, the ways that an object uses to hold of its dependencies include:

  • Firstly, by using the new operator, dependency can be created.
  • Secondly, dependency can be looked up by referring to a global variable.
  • Lastly, dependency can be passed into where it is needed.
Q.13 What is an ECMAScript?
ECMAScript stands for European Computer Manufacturer's Association that refers to a standard for scripting languages. However, JavaScript uses ECMAScript as a core language. Here, developers can take help of it for writing client-side scripting on the world wide web and or server applications and services. ECMAScript has supports several features like the functional, prototype, dynamic, and structured features.
Q.14 Define Single page application in AngularJS.
Single-Page Applications (SPAs) can be considered as web applications that load a single HTML page and dynamically update that page as the user interacts with the app. SPAs use AJAX and HTML for creating fluid and responsive web apps, without constant page reloads. However, this means much of the work happens on the client-side, in JavaScript.
Q.15 Define a controller in AngularJS.
A controller refers to a set of JavaScript functions which is bound to a definite scope, the ng-controllerdirective. Angular will represent the new controller object and injects the new scope as a dependency. It consists of business logic for the view and avoids using a controller for manipulating the Document Object Model (DOM).
Q.16 Explain the rules of a controller.
The controller is used for setting up the initial state of the scope object and add behavior to that object. Secondly, it is not used for manipulating DOM. It should contain only business logic and can use data binding and directives for the DOM manipulation. Thirdly, controllers are no used for formatting input but can use angular form controls. Next, there must be no use of filter output but we can use angular filters. Lastly, controllers are not used for sharing code or state over controllers but can use angular services.
Q.17 Define Representational State Transfer(REST) in AngularJS.
REST can be defined as a style of API that works across HTTP requests. The requested URL detects the data to be operated on, and the HTTP method detects the operation that is to be performed.
Q.18 Define transclusion in AngularJS?
The transclusion in AngulaJS allows developers for reallocating the original directive children into a defined location inside a template. The directive ng shows the insertion point for a transcluded DOM of the nearest parent directive, which is using transclusion. Ng-transclude-slot or ng-transclude directives are mainly used for transclusion.
Q.19 Name the types of hooks are available in AngularJS.
Various hooks in AngularJS are: ngOnInit() ngOnChanges(), ngDoCheck(), ngAfterContentInit(), ngAfterContentChecked(), ngOnDestroy(), ngAfterViewChecked(), and ngAfterViewInit()
Q.20 What is the ng-repeat directive?
The ng-repeat directive is the most used and very useful AngularJS Directive feature. This iterates across a collection of items and creates DOM elements. Further, this constantly monitors the source of data to re-render a template in response to change. Syntax of ng-repeat:
{{std.name}} {{std.salary}}
Here, ng-repeat directive iterates over the stdDetails collection and creates a DOM element for each entry in the collection.
Q.21 Define filters in AngularJS.
The filter is a module provided by AngularJS that is used for modifying the data and can be clubbed in expression or directives using a pipe character. A filter formats the value of an expression for showing it to the user. They can be used in view templates, controllers, or services, and we can easily create our own filter. Further, there are nine components of the filter provided by AngularJS. They are: currency date filter json limitTo lowercase number orderBy uppercase
Q.22 Define auto bootstrap process in AngularJS.
Angular initializes automatically DOMContentLoaded event or when you download angular.js script is to the browser. After this, AngularJS find the ng-app directive that is the root of angular app compilation. And, when the ng-app directive is found, AngularJS performs the given steps: Firstly, loading the module which is linked with the directive, Secondly, creating an application injector, Lastly, compiling the DOM from the ng-app root element. This process is known as auto bootstrapping.
Q.23 Why do we use AngularJS?

AngularJS is an Open source Javascript framework, to develop software applications for the internet, especially dynamic applications. AngularJS is used to develop single-page applications or SPA.

  • The main advantage of using AngularJS being, ease of development as it uses HTML like syntax to declare various functionality of a web application.
  • AngularJS is widely used by software development companies for developing websites and web applications for their clients.
  • Many organizations are also using AngularJS to manage their web facing applications as it supports two way data binding, reusable components, form validation by dependency injection.
  • AngularJS is being developed by Google and is the open source Javascript framework to develop robust and easy to maintain web applications using the MVC architecture.
Q.24 What is difference between angular and AngularJS?

The differences between Angular and AngularJS are

  • AngularJS supports MVC architecture whereas Angular uses components and directives
  • AngularJS uses JavaScript and Angular 2 onwards uses Typescript
  • Dependency injection in AngularJS is injected into various functions but in Angular, it is hierarchical dependency using providers, declarations, etc
  • Angular 2 onwards has CLI or command line interface of their own, which is absent in AngularJS
  • For data binding, correct syntax of ng directives for event or property in AngularJS, is needed whereas in Angular it is more intuitive.
  • For heavy data intensive applications, Angular is faster as compared to AngularJS

Q.25 What is AngularJS and why it is used?
  • AngularJS is a structural open source Javascript framework which is used to develop dynamic web applications.
  • AngularJS extends HTML syntax and uses HTML like language, as template for application’s components and functionality.
  • AngularJS uses data binding and dependency injection to reduce effort needed to develop dynamic web applications.
Q.26 What is latest version of AngularJS?

The latest version of AngularJS is version 1.7.8 as on March, 2019

The latest version of Angular is 8.2.13 as on Oct, 2019

Q.27 Which is better jquery or AngularJS?

AngularJS is better as it offers two way data binding and directives for DOM manipulation which is absent in JQuery.

AngularJS also uses dependency injection, routing, security to make the dynamic web application more modular, clean and easy to maintain.

AngularJS provides

  • Templating
  • Deep linked routing
  • Form validation
  • Localization
  • Dependency management
  • RESTful API


Though both should not be compared as AngularJS is a MVVM open source Javascript framework and JQuery is a library.


Q.28 What are the advantages of using AngularJS?

The advantages of using AngularJS, are

  • AngularJS is open source open source Javascript framework for developing dynamic web applications especially Rich Internet Applications (RIA)
  • AngularJS uses JavaScript which is popular among web developers
  • Data intensive dynamic web applications can be built quickly and reliability with AngularJS using data binding feature
  • AngularJS provides Templating
  • Deep linked routing is supported in AngularJS
  • Localization can easily be implemented using AngularJS
  • AngularJS has Dependency management
  • RESTful API is also provided by AngularJS

Q.29 Is AngularJS better than Angular?

Angular is better than AngularJS as it the next iteration in Angular family. Every version adds on to previous one and offers more facilities and ease of development.

Angular provides modularity, intuitiveness as compared to AngularJS. AngularJS is the predecessor for Angular family.

Q.30 Why angular 4 is better than AngularJS?

Angular 4 is better than AngularJS.

Angular 4 is the next version after the Angular 2 was released. AngularJS is very different than Angular 4. Angular 4 offers benefits against AngularJS as

  • Reduced view engine size
  • Support for
    • email validator
    • if/else statement
    • separate package for animation
  • Dynamic loading
  • Addition of angular CLI
  • Typescript usage


Q.31 Which is best angular or AngularJS?

The best between Angular or AngularJS, is Angular.

Angular is the next iteration in Angular family. Angular provides modularity, intuitiveness as compared to AngularJS. 

Other reasons for Angular being best, is

  • hierarchical dependency using providers, declarations, etc
  • CLI or command line interface of own
  • For data binding intuitive syntax, better than Angular
  • For heavy data intensive applications, Angular is faster as compared to AngularJS

Q.32 What is difference between JavaScript and AngularJS?

JavaScript and AngularJS  are different and should not be compared.

But, difference between JavaScript and AngularJS   can be summarized as

  • JavaScript is a programming language and AngularJS is an web application development MVC architecture based open source Javascript framework
  • JavaScript is used to develop dynamic web pages/application and AngularJS is a RAD for web applications especially SPAs.
  • JavaScript is mainly used in front-end development whereas AngularJS is used to develop SPA web application
  • AngularJS uses Javascript to implement functionality
  • AngularJS extends HTML and uses HTML syntax to add functionality
  • JavaScript is used by many web application open source Javascript framework development
  • AngularJS has facility of filters, which is absent in JavaScript

Q.33 What is MVC in AngularJS?

MVC in AngularJS is the implementation of MVC in AngularJS.

MVC expands to Model–view–controller . It is an architectural pattern for software application development

MVC in AngularJS divides an application into three interconnected parts of

  • Model - It manages the data, logic and rules of the application.
  • View – is output representation of information, such as a chart or a diagram. Multiple views of the same information are possible.
  • Controller - accepts input and converts it to commands for the model or view.

Interaction of MVC in AngularJS, is as

  • Model receives user input from the controller.
  • View is the presentation of the model in a particular format.
  • Controller receives the input, optionally validates it and then passes the input to the model.

Q.34 Is AngularJS difficult to learn?

No, AngularJS is not difficult to learn.

You need to dedicate few hours on daily basis to master AngularJS. Candidates usually become expert in 2-3 months.

If you are conversant with JavaScript, you will be able to learn AngularJS in less time as, AngularJS uses JavaScript.

Q.35 What is latest in angular?
The latest in Angular is version 8 released in May, 2019 and the latest updated version of Angular is 8.2.13 as in October, 2019
Q.36 Which is the most stable version of angular?

The most stable version of Angular is the major versions being released by Google.

The major releases of Angular are

  • Version 2
  • Version 4
  • Version 6
  • Version 7
  • Version 8
Q.37 Why is react better than angular?

React is not better than angular, both have their advantages and disadvantages.


Both have many similarities as

  • Have component-based architecture,
  • components are cohesive, reusable and modular

Difference between React and Angular, are

  • ReactJS is an open-source JavaScript library by Facebook and Angular is open source Javascript framework from Google
  • React is based on JavaScript and JSX (a PHP extension) and Angular is a part of MEAN stack


React Advantages

  • Better User Experience
  • Time-Saving
  • Quick Development
  • Faster Testing
  • Code Stability with One-directional data binding


Angular Benefits

  • Cleaner Code
  • Higher Performance
  • Material Design-like Interface
  • Better Error Handling
  • Seamless Updates using Angular CLI
Q.38 Is there a certification for angular?

Yes, there are many certification providers for angular.

You should select certification for angular by answering following questions

  • Does Hard copy or e-learning is provided?
  • Practice test for assessing oneself is given?
  • Are video demonstrations provided?
  • What is the alumni strength


Vskills provides following deliverables for angular certification

  • Online video based, e-learning LMS
  • Hard copy to candidates residing in India
  • Practice tests for assessing your knowledge
  • Government certification
  • Vast alumni strength working in reputed software companies like Accenture, Cognizant, IBM, TCS, etc

Q.39 What is angular training?

Angular training involves getting to know Angular open source Javascript framework and developing web applications and SPAs using Angular.

Angular training should also include assessment and certification of your skills and knowledge of Angular open source Javascript framework.

Vskills provides following deliverables

  • Online video based, e-learning LMS
  • Hard copy to candidates residing in India
  • Practice tests for assessing your knowledge
  • Government certification
  • Vast alumni strength working in reputed software companies like Accenture, Cognizant, IBM, TCS, etc

Ng-init is used in a scenario where we want some action to be done before the initialization of a portion of the DOM element.

Q.41 Whats is AngularJS?

AngularJS is a Open source Javascript framework, to develop software applications for internet especially dynamic applications. AngularJS is used to develop single page applications or SPA.

The main advantage of using AngularJS being, ease of development as it uses HTML like syntax to declare various functionality of a web application.

AngularJS is widely used by software development companies for developing websites and web applications for their clients.

Many organizations are also using AngularJS to manage their web facing applications as it supports two way data binding, reusable components, form validation by dependency injection.

AngularJS is being developed by Google and is the open source Javascript framework to develop robust and easy to maintain web applications using the MVC architecture.

Q.42 What is two-way binding?

Two-way binding means that when data in the view is changed the underlying model gets updated automatically and when a model from the controller is changed the view gets updated.

Q.43 Explain MVC in reference to angular.

AngularJs is an MVC based framework, where Model for a controller contains data, the controller for a view contains the logic to manipulate that data, and the view is the HTML that displays the data.


A $scope can be considered as a model, whereas the functions written in angular controller modifies the $scope and HTML display the value of the scope variable.

Q.44 Which is better JQuery or AngularJS?

JQuery and AngularJS  are different and should not be compared.
But, difference between JQuery and AngularJS   can be summarized as

  • jQuery is an easy to use modular DOM manipulation library and AngularJS is an web application development MVC architecture based open source Javascript framework
  • jQuery methods can do tasks like manipulating elements, events, AJAX requests, effects and AngularJS provide more functionalities
  • jQuery is used to develop dynamic web pages/application and AngularJS is a RAD for web applications especially SPAs.
  • jQuery is mainly used in adding dynamism in front-end development whereas AngularJS is used to develop SPA web application
  • AngularJS extends HTML and uses HTML syntax to add functionality
  • AngularJS has facility of filters, which is absent in JavaScript
Q.45 What is difference between angular and AngularJS?

The differences between Angular and AngularJS are

  • AngularJS supports MVC architecture whereas Angular uses components and directives
  • AngularJS uses JavaScript and Angular 2 onwards uses Typescript
  • Dependency injection in AngularJS is injected into various functions but in Angular, it is hierarchical dependency using providers, declarations, etc
  • Angular 2 onwards has CLI or command line interface of their own, which is absent in AngularJS
  • For data binding, correct syntax of ng directives for event or property in AngularJS, is needed whereas in Angular it is more intuitive.
  • For heavy data intensive applications, Angular is faster as compared to AngularJS

Q.46 What is difference between JavaScript and AngularJS?

JavaScript and AngularJS  are different and should not be compared.
But, difference between JavaScript and AngularJS   can be summarized as

  • JavaScript is a programming language and AngularJS is an web application development MVC architecture based open source Javascript framework
  • JavaScript is used to develop dynamic web pages/application and AngularJS is a RAD for web applications especially SPAs.
  • JavaScript is mainly used in front-end development whereas AngularJS is used to develop SPA web application
  • AngularJS uses Javascript to implement functionality
  • AngularJS extends HTML and uses HTML syntax to add functionality
  • JavaScript is used by many web application open source Javascript framework development
  • AngularJS has facility of filters, which is absent in JavaScript

Q.47 What is $scope?

$scope is a model for a controller and helps the controller in interacting with the view.

Q.48 What is the purpose of $rootScope?

$rootScope helps in communication between different controllers of an application. AngularJS can have only one rootScope for an app.

Q.49 Where should one use form action instead of $http for accessing a method on a server?

Form action should be used at a place where the server-side method takes the control to some other view in other word leads to redirection whereas HTTP request should be used where the server method returns some data.


Q.50 What is angular material design?
  • Angular material design is a design language for web and mobile apps
  • Angular material design was developed by Google in 2014.
  • Angular material design is an adaptable system of guidelines, components, and tools that support the best practices of user interface design.
  • Angular material design makes it easy for developers to customize their UI while still keeping a good-looking app interface that users are comfortable with.
  • Angular material design initial focus was touch-based mobile apps, now it extends to web design.
  • Angular material design defines the qualities that can be expressed by UI regions, surfaces, and components.

Q.51 Is there any certification exam for Angular JS?

Yes, there are many certification exam for AngularJS.

You should select certification for angular by answering following questions

  • Does Hard copy or e-learning is provided?
  • Practice test for assessing oneself is given?
  • Are video demonstrations provided?
  • What is the alumni strength

Vskills provides following deliverables for angular certification

  • Online video based, e-learning LMS
  • Hard copy to candidates residing in India
  • Practice tests for assessing your knowledge
  • Government certification
  • Vast alumni strength working in reputed software companies like Accenture, Cognizant, IBM, TCS, etc

Q.52 Whats is Angularjs?

AngularJS is a Open source Javascript framework, to develop software applications for internet especially dynamic applications. AngularJS is used to develop single page applications or SPA.

The main advantage of using AngularJS being, ease of development as it uses HTML like syntax to declare various functionality of a web application.

AngularJS is widely used by software development companies for developing websites and web applications for their clients.

Many organizations are also using AngularJS to manage their web facing applications as it supports two way data binding, reusable components, form validation by dependency injection.

AngularJS is being developed by Google and is the open source Javascript framework to develop robust and easy to maintain web applications using the MVC architecture.

Get Govt. Certified Take Test