1. What is AngularJS?

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

2. Can you please explain what is testability like in Angular?

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).

3. Tell me does Angular use the jQuery library?

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.

4. Tell me can we use the open-source Closure Library with Angular?

Yes, you can use widgets from the Closure Library in Angular.

5. Do you know what is Angulars performance like?

The startup time heavily depends on your network connection, 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.

6. Tell me which browsers does Angular work with?

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.

7. What is ng-app in AngularJS?

To initialize the Angular Application.

8. What is ng-init in AngularJS?

To initialize the Angular Application data.

13. Is it opensource?

Yes, It is free to use.

14. What are the key features of Angular.js?

► Scope
► Controller
► Model
► View
► Services
► Data Binding
► Directives
► Filters
► Testable

15. What is controller in AngularJS?

Controller is constructor function in Angular Controller.
When a Controller is attached to the DOM with use the ng-controller, Angular will instantiate a new Controller object using constructor function.

16. What are directives?

Directives are used to add new attributes of HTML.

17. What are the different types of Directive?

Different types of directives are:
► Element directives
► Attribute directives
► CSS class directives
► Comment directives

18. What is injector?

An injector is a service locator, used to retrieve object instances.

19. What are factory method in angularJs?

Factory method are used to create the directive. It is invoked only once, when compiler matches the directive for the first time.

20. What is ng-model in AngularJS?

To bind the html tags (input, select, textarea) to Angular Application Data.

21. What is Data Binding in Angular JS?

It is synchronization of data between the model(Angular Application variable) and view components (display with {{}}).

22. How to initiate variable in AngularJS?

1 <div ng-app="" ng-init="quantity=10;cost=5">
2 <b>Total Cost: {{ quantity * cost }}</b>
3 </div>

23. Does Angular use the jQuery library?

Yes, Angular can use jQuery if you have included the jQuery library.
IF Not, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.

24. Give an Example of Data-Binding in AngularJS?

1 <div ng-app="" ng-init="quantity=10;cost=5" class="ng-scope">
2 <b class="ng-binding">Total Cost: 50</b>
3 </div>

Download Interview PDF

25. What is Looping in AngularJs?

It is used to display the data in loop same as foreach in PHP.