29 Essential AngularJS Interview Questions

31
29 Essential AngularJS Interview Questions

Transcript of 29 Essential AngularJS Interview Questions

Page 1: 29 Essential AngularJS Interview Questions

29 Essential AngularJS Interview Questions

Page 2: 29 Essential AngularJS Interview Questions

What are the basic steps to unit test an AngularJS filter?

Question 1:

Page 3: 29 Essential AngularJS Interview Questions

What should be the maximum number of concurrent “watches”? Bonus: How would you keep an eye on that number?

Question 2:

Page 4: 29 Essential AngularJS Interview Questions

How do you share data between controllers?

Question 3:

Page 5: 29 Essential AngularJS Interview Questions

What is the difference between ng-show / ng-hide and ng-if directives?

Question 4:

Page 6: 29 Essential AngularJS Interview Questions

What is a digest cycle in AngularJS?

Question 5:

Page 7: 29 Essential AngularJS Interview Questions

Where should we implement the DOM manipulation in AngularJS?

Question 6:

Page 8: 29 Essential AngularJS Interview Questions

Is it a good or bad practice to use AngularJS together with jQuery?

Question 7:

Page 9: 29 Essential AngularJS Interview Questions

If you were to migrate from Angular 1.4 to Angular 1.5, what is the main thing that would need refactoring?

Question 8:

Page 10: 29 Essential AngularJS Interview Questions

How would you specify that a scope variable should have a one-time binding only?

Question 9:

Page 11: 29 Essential AngularJS Interview Questions

Question 10:What is the difference between one-way binding and two way binding?

Page 12: 29 Essential AngularJS Interview Questions

Question 11:Explain how $scope.$apply() works

Page 13: 29 Essential AngularJS Interview Questions

Question 12:What directive would you use to hide elements from the HTML DOM by removing them from that DOM not changing their styling?

Page 14: 29 Essential AngularJS Interview Questions

Question 13:W h a t m a k e s t h e angular.copy() method so powerful?

Page 15: 29 Essential AngularJS Interview Questions

How would you make an Angular service return a promise? Write a code snippet as an example

Question 14:

Page 16: 29 Essential AngularJS Interview Questions

What is the role of services in AngularJS and name any services made available by default?

Question 15:

Page 17: 29 Essential AngularJS Interview Questions

When creating a directive, it can be used in several different ways in the view. Which ways for using a directive do you know? How do you define the way your directive will be used?

Question 16:

Page 18: 29 Essential AngularJS Interview Questions

When should you use an attribute versus an element?

Question 17:

Page 19: 29 Essential AngularJS Interview Questions

AngularJS Interview Question #18

Question 18:

Page 20: 29 Essential AngularJS Interview Questions

Explain what is a $scope in AngularJS

Question 19:

Page 21: 29 Essential AngularJS Interview Questions

What are Directives?

Question 20:

Page 22: 29 Essential AngularJS Interview Questions

What is a DDO Directive Definition Object?

Question 21:

Page 23: 29 Essential AngularJS Interview Questions

What is a singleton pattern and where we can find it in Angularjs?

Question 22:

Page 24: 29 Essential AngularJS Interview Questions

What is an interceptor? What are common uses of it?

Question 23:

Page 25: 29 Essential AngularJS Interview Questions

How would you programatically change or adapt the template of a directive before it is executed and transformed?

Question 24:

Page 26: 29 Essential AngularJS Interview Questions

How would you validate a text input field for a twitter username, including the @ symbol?

Question 25:

Page 27: 29 Essential AngularJS Interview Questions

How would you implement application-wide exception handling in your Angular app?

Question 26:

Page 28: 29 Essential AngularJS Interview Questions

How do you hide an HTML element via a button click in AngularJS?

Question 27:

Page 29: 29 Essential AngularJS Interview Questions

How would you react on model changes to trigger some further action? For instance, say you have an input text field called email, and you want to trigger or execute some code as soon as a user starts to type in their email.

Question 28:

Page 30: 29 Essential AngularJS Interview Questions

How do you disable a button depending on a checkbox's state?

Question 29: