Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
1K views

AngularJS 1.x Internals

This document contains 33 questions related to AngularJS concepts like dependency injection, services, factories, providers, scopes, controllers, and directives. The questions cover topics such as what injector and factory methods are in AngularJS, when services are singletons, how dependency injection works, what the different scope types are, how data binding is achieved, and which directives are used for common tasks like bootstrapping apps and displaying text.

Uploaded by

kashyap
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

AngularJS 1.x Internals

This document contains 33 questions related to AngularJS concepts like dependency injection, services, factories, providers, scopes, controllers, and directives. The questions cover topics such as what injector and factory methods are in AngularJS, when services are singletons, how dependency injection works, what the different scope types are, how data binding is achieved, and which directives are used for common tasks like bootstrapping apps and displaying text.

Uploaded by

kashyap
Copyright
© © All Rights Reserved
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3

S.

No
1

2
3

4
5
6
7

8
9

10

11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Questions
Identify the dependency / dependencies for myController

Which is not true about dependency injection in AngularJS?


is the passing of a dependency to the dependent object.

What is injector?
When you inject a service into a controller, _______ looksup and instantiates the service for the controller.
Scope act as glue between controller and view.
Using factory method, we first define a factory and then assign a method to it. Is it true or false?

What are services in AngularJS?


Return statement is mandatory in _____ whereas the same is not needed in

When declaring a factory name as an injectable argument, AngularJS provides

What is factory method in angularJs?


In ____, 'this' keyword is used
You have a data that can be changed frequently in the application. Which one of the provider types would you
Which component can be injected as a dependency in AngularJS?
Which of provider type can be injected during config phase
Which ones are singleton in AngularJS?
$apply is at controller level and $digest looks for changes at module level.
What is the second argument in $watch?
Controller binds model data to views using
Which of the following is default scope type of angular?
Changes at each scope level of every controller is monitored by
Dependency injection into the angular module is done at which phase?
In controllers, model data is accessed via $scope object.
Constant can store array of data, not just single value. True or False?
Angular comes with a CSS library to provide default styling to the componenets
What technique angularjs uses for two way binding?
Which of the following refers to view component in angular js ?
Which method is used to send a notification to the parent scope?
Which one of these are not a filter of Angular js?
Which of the below directive removes the element from DOM if expression evaluates to false?
What directive is used to bootstrap an angular application?
Which of the directive is used to display text?
$scope is created with ng-controller while $rootscope is created with ng-app. True of false?
Answers
Both $scope and dataService

Dependencies are added only at controller level


Injection
It is a service locator, used to retrieve object
instance
Injector
1
1
Services are singleton objects which are
instantiated only once in app and are used to do
the defined task
Factory, Service
The value returned by invoking the function
Passed to module.factory
It is used to create the directive. It is invoked only
once, when compiler matches the directive for the
first time
Service
Constant
All of these
Constant and provider
Service and factory
0
Listener
$scope
existing scope
$watch
Bootstrap phase
1
1
1
Dirty checking
DOM
$emit()
none of these
ng-if
ng-app
ng-list
1

You might also like