KEMBAR78
29 Essential AngularJS Interview Questions | PDF
29 Essential AngularJS
Interview Questions
What are the basic steps to unit test an
AngularJS filter?
Question 1:
What should be the maximum
number of concurrent “watches”?
Bonus: How would you keep an eye
on that number?
Question 2:
How do you share data between controllers?
Question 3:
What is the difference between ng-
show / ng-hide and ng-if
directives?
Question 4:
What is a digest cycle in AngularJS?
Question 5:
Where should we implement the DOM
manipulation in AngularJS?
Question 6:
Is it a good or bad practice to use AngularJS
together with jQuery?
Question 7:
If you were to migrate from Angular 1.4 to Angular
1.5, what is the main thing that would need
refactoring?
Question 8:
How would you specify that a scope variable
should have a one-time binding only?
Question 9:
Question 10:
What is the difference between one-way
binding and two way binding?
Question 11:
Explain how $scope.$apply() works
Question 12:
What directive would you use to hide
elements from the HTML DOM by removing
them from that DOM not changing their
styling?
Question 13:
W h a t m a k e s t h e angular.copy()
method so powerful?
How would you make an Angular service return
a promise? Write a code snippet as an example
Question 14:
What is the role of services in AngularJS and
name any services made available by
default?
Question 15:
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:
When should you use an attribute versus an
element?
Question 17:
AngularJS Interview Question #18
Question 18:
Explain what is a $scope in AngularJS
Question 19:
What are Directives?
Question 20:
What is a DDO Directive Definition Object?
Question 21:
What is a singleton pattern and where we
can find it in Angularjs?
Question 22:
What is an interceptor? What are common
uses of it?
Question 23:
How would you programatically change or
adapt the template of a directive before it is
executed and transformed?
Question 24:
How would you validate a text input field for a
twitter username, including the @ symbol?
Question 25:
How would you implement application-wide
exception handling in your Angular app?
Question 26:
How do you hide an HTML element via a
button click in AngularJS?
Question 27:
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:
How do you disable a button depending on a
checkbox's state?
Question 29:
Did you know how to answer all 29 questions?
Feel free to check your answers here!

29 Essential AngularJS Interview Questions

  • 1.
  • 2.
    What are thebasic steps to unit test an AngularJS filter? Question 1:
  • 3.
    What should bethe maximum number of concurrent “watches”? Bonus: How would you keep an eye on that number? Question 2:
  • 4.
    How do youshare data between controllers? Question 3:
  • 5.
    What is thedifference between ng- show / ng-hide and ng-if directives? Question 4:
  • 6.
    What is adigest cycle in AngularJS? Question 5:
  • 7.
    Where should weimplement the DOM manipulation in AngularJS? Question 6:
  • 8.
    Is it agood or bad practice to use AngularJS together with jQuery? Question 7:
  • 9.
    If you wereto migrate from Angular 1.4 to Angular 1.5, what is the main thing that would need refactoring? Question 8:
  • 10.
    How would youspecify that a scope variable should have a one-time binding only? Question 9:
  • 11.
    Question 10: What isthe difference between one-way binding and two way binding?
  • 12.
    Question 11: Explain how$scope.$apply() works
  • 13.
    Question 12: What directivewould you use to hide elements from the HTML DOM by removing them from that DOM not changing their styling?
  • 14.
    Question 13: W ha t m a k e s t h e angular.copy() method so powerful?
  • 15.
    How would youmake an Angular service return a promise? Write a code snippet as an example Question 14:
  • 16.
    What is therole of services in AngularJS and name any services made available by default? Question 15:
  • 17.
    When creating adirective, 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:
  • 18.
    When should youuse an attribute versus an element? Question 17:
  • 19.
  • 20.
    Explain what isa $scope in AngularJS Question 19:
  • 21.
  • 22.
    What is aDDO Directive Definition Object? Question 21:
  • 23.
    What is asingleton pattern and where we can find it in Angularjs? Question 22:
  • 24.
    What is aninterceptor? What are common uses of it? Question 23:
  • 25.
    How would youprogramatically change or adapt the template of a directive before it is executed and transformed? Question 24:
  • 26.
    How would youvalidate a text input field for a twitter username, including the @ symbol? Question 25:
  • 27.
    How would youimplement application-wide exception handling in your Angular app? Question 26:
  • 28.
    How do youhide an HTML element via a button click in AngularJS? Question 27:
  • 29.
    How would youreact 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:
  • 30.
    How do youdisable a button depending on a checkbox's state? Question 29:
  • 31.
    Did you knowhow to answer all 29 questions? Feel free to check your answers here!