Angular JS Interview Questions and Answers
Ques 1. What is AngularJS?
Ans. AngularJS is an open-source JavaScript framework, maintained by Google, that assists with running single-page applications. Its goal is to augment browser-based applications with model–view–controller capability, in an effort to make both development and testing easier.
Is it helpful?
Add Comment
View Comments
Ques 2. Can you please explain what is testability like in Angular?
Ans. Very testable and designed this way from ground up. It has an integrated dependency injection framework, provides mocks for many heavy dependencies (server-side communication).
Is it helpful?
Add Comment
View Comments
Ques 3. Why is this project called "AngularJS"? Why is the namespace called "ng"?
Ans. Because HTML has Angular brackets and "ng" sounds like "Angular".
Is it helpful?
Add Comment
View Comments
Ques 4. Tell me does Angular use the jQuery library?
Ans. Yes, Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.
Is it helpful?
Add Comment
View Comments
Ques 5. Is AngularJS a library, framework, plugin or a browser extension?
Ans.AngularJS fits the definition of a framework the best, even though it's much more lightweight than a typical framework and that's why many confuse it with a library.
AngularJS is 100% JavaScript, 100% client side and compatible with both desktop and mobile browsers. So it's definitely not a plugin or some other native browser extension.
Is it helpful?
Add Comment
View Comments
Most helpful rated by users: