-
What does ng-dblclick directive do in AngularJS?
- A) It binds a double-click event to a function.
- B) It initializes the AngularJS application.
- C) It defines a new controller in AngularJS.
- D) It hides an element until AngularJS has finished its compilation.
Answer: A) It binds a double-click event to a function.
-
Which AngularJS service is used for making XMLHTTPRequest calls?
- A) $http
- B) $xhr
- C) $ajax
- D) $request
Answer: A) $http
-
What is the purpose of ng-mousedown directive in AngularJS?
- A) It binds a mousedown event to a function.
- B) It initializes the AngularJS application.
- C) It defines a new controller in AngularJS.
- D) It hides an element until AngularJS has finished its compilation.
Answer: A) It binds a mousedown event to a function.
-
Which AngularJS service is used for managing browser location and URL parsing?
- A) $location
- B) $router
- C) $url
- D) $navigate
Answer: A) $location
-
What is the purpose of ng-mouseout directive in AngularJS?
- A) It binds a mouseout event to a function.
- B) It initializes the AngularJS application.
- C) It defines a new controller in AngularJS.
- D) It hides an element until AngularJS has finished its compilation.
Answer: A) It binds a mouseout event to a function.
-
What does ng-mouseup directive do in AngularJS?
- A) It binds a mouseup event to a function.
- B) It initializes the AngularJS application.
- C) It defines a new controller in AngularJS.
- D) It hides an element until AngularJS has finished its compilation.
Answer: A) It binds a mouseup event to a function.
-
Which AngularJS service is used for dependency injection in AngularJS?
- A) $inject
- B) $di
- C) $injector
- D) $dependency
Answer: C) $injector
-
What is the purpose of ng-submit directive in AngularJS?
- A) It binds a form submission event to a function.
- B) It initializes the AngularJS application.
- C) It defines a new controller in AngularJS.
- D) It submits a form automatically.
Answer: A) It binds a form submission event to a function.
-
Which AngularJS service is used for managing animations in AngularJS applications?
- A) $animate
- B) $animation
- C) $angularAnimate
- D) $animationService
Answer: A) $animate
-
What is the purpose of ng-readonly directive in AngularJS?
- A) It binds the readonly attribute of an element to an expression. - B) It initializes the AngularJS application. - C) It defines a new controller in AngularJS. - D) It hides an element until AngularJS has finished its compilation.
Answer: A) It binds the readonly attribute of an element to an expression.
Comments