Angular js Interview Questions

Here you can get all angular js interview questions for freshers and experienced. It also covers real time angularjs interview questions.

What is AngularJs ?

Angular Js is the structural javascript-based open source front-end web application development framework.Its is very fast and light-weight.

What is injector in AngularJS?

An injector is a service locator,which is  used for retrieve object instance as defined by invoke methods,load modules, provider, and instantiate types.

What are the key features of AngularJS?

  • Scope
  • Controller
  • Model
  • View
  • Services
  • Data Binding
  • Directives
  • Filters
  • Testable

What is dependency injection?

Dependency injection is the process where the dependent objects are injected rather than being created by the consumer.

Why angularjs is better than other js?

It has some powerful features for fast and easy development web applications.

  •     It follows MVC.
  •     It supports powerful HTML template.
  •     Two way data-binding
  •     Form validations
  •     Routing supports
  •     Inbuilt services.
  •     REST friendly.
  •     It supports Dependency injections.
  •     It helps you to structure and test your JavaScript code without depending other resources.

Get more angular js interview questions below.

How to enable HTML5 mode in Angular 1.x?

html5Mode method of $locationProvider module is used to enable HTML5 mode in Angular 1.x. For creating pretty URLs and removing # from URLs html5Mode need to true.

What is data binding in AngularJS?

Data binding is the presentation of data between model and view components by help of ng-model directive.

What is routing in AngularJS?

Switching views called routing. Mainly the AngularJS  controller decides which view will render after other.

What is $scope in AngularJS?

$scope is a javascript object which access the model data in controller.

What is $rootScope?

$rootScope is the parent of all of the $scope variables. $scope is a javascript object which access the model data in controller.

What is the difference between AngularJS and backbone.js?

Angular Js is the structural javascript-based open source front-end web application development framework, which is followed by MVC (Model-view-controller) architecture.

Backbone.js is a JavaScript library with a RESTful JSON interface which is followed by Model–view–presenter (MVP) architecture.

What is Single Page Application (SPA)?

Single page Application means all the navigation done in Single page without page refreshed. and all the Html , Js and css will load in this page. Its gives better use experience and some time ability to work offline as well once that page being loaded.

What are directives in AngularJS?

Directives are attributes that allow you to create new custom HTML syntax, according to your application. These  directives are start execute when they get notice by angular compiler in DOM.

In Angular JS the core and commonly used directives are  ng-app,ng-controller and ng-repeat.

What is factory method in AngularJS?

Factory in angularJs used to creating custom directive. It is called when compiler encounters directive for the first time.

We can invoke the factory method using $injector.invoke.

Syntax:

Different types of custom directives in Angularjs?

Element directives − Directive invoked when a matching element is found.
Attribute directives − Directive invoked when a matching attribute is found.
CSS class − Directive invoked when a matching css style is found.
Comment  directives− Directive invoked when a matching comment is found.

What is interpolation in angularJs?

Interpolation is a special syntax in angular js which provides data-binding to text nodes and attribute values.

Example:-

Visit this page we will update more angular js interview questions weekly basis.
Read angular 2 interview questions and answers
Read angular 4 interview questions for experienced
Read angular 5 interview questions
Read angular 6 interview questions
 

 

 

Custom SEO friendly URL in AngularJs with Demo

Share this post

One thought on “Angular Js Interview Questions

Post Comment