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