Thursday, October 22, 2015

AngularJS Questions and Answers

1) What is AngularJS?
AngularJS is developed by Google and it is an open source framework and it is used to create one page web apps or single page application using JavaScript, HTML and CSS.
2) What are the uses of AngularJS?
Below are the uses of AngularJS –
  • It uses MVC pattern.
  • Allows to create our own directive for making components reusable. 
  • Used for two way binding i.e, connecting model and view.
  • Supports Dependency Injection (DI)
3) Explain the features of AngularJS?
Below are the list of AngularJS features –
  • Model
  • View
  • Controller
  • Scope
  • Data Binding
  • Services
  • Filters
  • Directives
  • Testable
4) Explain scope in AngularJS?
Scope will act like a glue between view and controller and scopes are arranged in hierarchical structure

5) Why the AngularJS project called “AngularJS”?
The reason is HTML will have angle bracket “<”, “>” and “ng” is sound like “Angular”. So it is being called as AngularJS.
6) List out the advantages of AngularJS?
Below are the list of advantages of AngularJS –
  • Code Reusability
  • Data Binding
  • Testing
  • Support
  • Customize and Extensible
7) What are AngularJS Expressions?
Angular Expressions are code snippets and this usually be placed in “{{ }}”. This will be like - {{ expression }}.

No comments: