You are on page 1of 1

AngularJS 1.

x Internals
-----------------------
Identify the dependency / dependencies for myController - Both $scope and
dataService
Which is not true about dependency injection in AngularJS? - Dependencies are added
only at controller level
is the passing of a dependency to the dependent object. - Injection
What is injector? - It is a service locator, used to retrieve object instance
When you inject a service into a controller, _______ looksup and instantiates the
service for the controller. - Injector
Scope act as glue between controller and view. - True
-----------------------
Using factory method, we first define a factory and then assign a method to it. Is
it true or false? - true
What are services in AngularJS? - Services are singleton objects which are
instantiated only once in app and are used to do the defined task
Return statement is mandatory in _____ whereas the same is not needed in _ -
Factory, Service
When declaring a factory name as an injectable argument, AngularJS provides _ - The
value returned by invoking the function passed to module.factory
What is factory method in angularJs? - It is used to create directive
In ____, 'this' keyword is used - Service
-----------------------
You have a data that can be changed frequently in the application. Which one of the
provider types would you choose to assign values? - Constant
Which component can be injected as a dependency in AngularJS? all
Which of provider type can be injected during config phase - constant and provider
Which ones are singleton in AngularJS? - service and factory
-----------------------
$apply is at controller level and $digest looks for changes at module level. -
False
What is the second argument in $watch? - Listener watchExpression
Controller binds model data to views using _ $scope
Which of the following is default scope type of angular? - existing scope
Changes at each scope level of every controller is monitored by _ - $watch
Dependency injection into the angular module is done at which phase? - Bootstrap
phase
-----------------------
In controllers, model data is accessed via $scope object. - true
Constant can store array of data, not just single value. True or False? - true
Angular comes with a CSS library to provide default styling to the componenets -
true
What technique angularjs uses for two way binding? - Dirty checking
Which of the following refers to view component in angular js ? - dom
Which method is used to send a notification to the parent scope? - $emit()
Which one of these are not a filter of Angular js? - none

You might also like