Showing posts with label AngularJS Questions and Answers. Show all posts
Showing posts with label AngularJS Questions and Answers. Show all posts

Wednesday, October 28, 2015

AngularJS Questions and Answers

8) List out the differences between java Script and angular JS expressions?
Below are the list of differences between java script and angular JS
  • In Javascript expressions are being evaluated from the global window whereas in angularJS it is being evaluated from scope object.
  • Conditions, Loops and Exceptions are not supported in AngularJS as in Javascript.
9) Explain controller in AngularJS?
Controller is constructor function in AngularJS. Controller can be attached to DOM using “ng-controller” attribute.
10) Which and all browsers support AngularJS?
All major browsers like – Chrome, Safari, Firefox, Opera 15+, IE 9+ will support AngularJS.
11) How AngularJS is used to handle the security hurdles?
Below are the list of security hurdles handled by AngularJS –
  • Used for preventing CSS attacks
  • Used for preventing XSRF protection
  • Used for preventing HTML injection

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