AngularJS Q&A

Dear readers, these AngularJS Interview Questions have been designed specially to get you acquainted with the nature of questions you may encounter during your interview for the subject of AngularJS. As per my experience good interviewers hardly plan to ask any particular question during your interview, normally questions start with some basic concept of the subject and later they continue based on further discussion and what you answer:

  • What is AngularJS?
    AngularJS is a framework to build large scale and high performance web application while keeping them as easy-to-maintain. Following are the features of AngularJS framework.

    • AngularJS is a powerful JavaScript based development framework to create RICH Internet Application (RIA).
    • AngularJS provides developers options to write client side application (using JavaScript) in a clean MVC (Model View Controller) way.
    • Application written in AngularJS is cross-browser compliant. AngularJS automatically handles JavaScript code suitable for each browser.
    • AngularJS is open source, completely free, and used by thousands of developers around the world. It is licensed under the Apache License version 2.0.
  • What is data binding in AngularJS?
    Data binding is the automatic synchronization of data between model and view components. ng-model directive is used in data binding.
  • What is scope in AngularJS?
    Scopes are objects that refer to the model. They act as glue between controller and view.
  • What are the controllers in AngularJS?
    Controllers are JavaScript functions that are bound to a particular scope. They are the prime actors in AngularJS framework and carry functions to operate on data and decide which view is to be updated to show the updated model based data.
  • What are the services in AngularJS?
    AngularJS come with several built-in services. For example $http service is used to make XMLHttpRequests (Ajax calls). Services are singleton objects which are instantiated only once in app.
  • What are the filters in AngularJS?
    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.
  • Explain directives in AngularJS?
    Directives are markers on DOM elements (such as elements, attributes, css, and more). These can be used to create custom HTML tags that serve as new, custom widgets. AngularJS has built-in directives (ng-bind, ng-model, etc) to perform most of the task that developers have to do.
  • Explain templates in AngularJS?
    Templates are the rendered view with information from the controller and model. These can be a single file (like index.html) or multiple views in one page using “partials”.
  • What is routing in AngularJS?
    It is concept of switching views. AngularJS based controller decides which view to render based on the business logic.
  • What is deep linking in AngularJS?
    Deep linking allows you to encode the state of application in the URL so that it can be bookmarked. The application can then be restored from the URL to the same state.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s