Top 10 AngularJS Interview Questions and Answers

By November 16, 2017 December 4th, 2017 AnuglarJs

Most asking Top 10 AngularJS Interview Questions and Answers. Please read below questions and answers.

Q#1. What is AngularJS?

A#1. AngularJS is a framework to build large scale and high performance application.

  1. AngularJS is a very powerful JavaScript Framework.
  2. It is provides developer to write a client side application in MVC method.
  3. Open source and free. And used by many developers and tested.

Q#2. What are the controllers in AngularJS?

A#2. Controllers are JavaScript functions. They decide which view is to be updated to show the updated model based data.

Q#3. What are filters in AngularJS?

A#3. Filters select a subset of items from an array and return a new array. Filters are used to show filtered items from a list of items based on defined criteria.

Q#4. What is routing in AngularJS?

A#4.  ngRoute module you can use to navigate the pages in AngularJs.

Example from w3school

Q#5. What are the advantage of AngularJS?

A#5. AngularJS are as follows

  1. AngularJS provides capability to create Single Page Application.
  2. AngularJS code is unit testable.
  3. AngularJS provides reusable components.
  4. In AngularJS, views are pure html pages, and controllers written in JavaScript do the business processing.
  5. With AngularJS, developer writes less code and gets more functionality.

Q#6. What are the disadvantages of AngularJS?

A#6. Disadvantages are as follows.

  1. Not Secure − Being JavaScript only framework, application written in AngularJS are not safe. Server side authentication and authorization is must to keep an application secure.
  2. Not degradable − In