Monday 13 February 2017

AngularJS interview questions and answers


1) What is AngularJS?
AngularJS is a client side JavaScript MVC framework to develop a dynamic web application. It was developed by Google. Its helps to create single page applications (SPA) or one-page web applications that only required HTML, CSS and JavaScript on client-side.
2) Why to use AngularJS?
It is a open source javascript framework.
It is based on MVC pattern which helps you to organize your web apps or web application properly.
It also allows you to create your own directives, making reusable components that fill your needs and abstract your DOM manipulation logic.
It supports dependency injection.
It supports two-way data binding ie. HTML(view) to JavaScript object(model) seamlessly. Any change in model will update view and vice versa without any DOM manipulation.
3) What are the advantages of AngularJS?
Data Binding - AngularJS provides a powerful data binding mechanism to bind data to HTML elements by using scope.
Customize & Extensible - AngularJS is customized and extensible as per you requirement. You can create your own custom components like directives, services etc.
Code Reusability - AngularJS allows you to write code which can be reused. For example custom directive which you can reuse.
Support – AngularJS is mature community to help you. It has widely support over the internet. Also, AngularJS is supported by Google which gives it an advantage.
Compatibility - AngularJS is based on JavaScript which makes it easier to integrate with any otherJavaScript library and runnable on browsers like IE, Opera, FF, Safari, Chrome etc.
Testing - AngularJS is designed to be testable so that you can test your AngularJS app components as easy as possible. It has dependency injection at its core, which makes it easy to test.

No comments:

Post a Comment