Angularjs basic interview questions and answers, this all we have written based on real time experience.
Ques 1. What is AngularJS?
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).
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”.
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.
Ques 5. Is AngularJS a library, framework, plugin or a browser extension?
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.
Ques 6. Tell me can we use the open-source Closure Library with Angular?
Ans. Yes, you can use widgets from the Closure Library in Angular.
Ques 7. Do you know what is Angulars performance like?
Ans. The startup time heavily depends on your network connection, a state of the cache, browser used and available hardware, but typically we measure bootstrap time in tens or hundreds of milliseconds.
The runtime performance will vary depending on the number and complexity of bindings on the page as well as the speed of your backend (for apps that fetch data from the backend). Just for an illustration, we typically build snappy apps with hundreds or thousands of active bindings.
Ques 8. Tell me which browsers does Angular work with?
Ans. We run our extensive test suite against the following browsers: Safari, Chrome, Firefox, Opera, IE8, IE9 and mobile browsers (Android, Chrome Mobile, iOS Safari). See Internet Explorer Compatibility for more details in supporting legacy IE browsers.
So why am I talking about AngularJS over frameworks/libraries like Backbone, Ember, or Knockout?
For me, the major points of separation in AngularJSs favor are the following:
1. Good documentation
2. Write less code to do more
3. Backed by Google
4. Good developer community
5. Simple Data-Binding
6. Small footprint