NodeJS Installation:
Raise request/ticket to install Node.js on your machine.
Once installed, open 'Node.js command prompt' from your start menu.
Run the following commands:
npm config set proxy http://http-proxy.******.com:80
npm config set https-proxy http://http-proxy.******.com:80
npm set strict-ssl false = false
npm install bower -g
npm install grunt -g
npm install
bower install
grunt serve
------------------------------------------
Well-known Built-in Services
$http - Allows promise-based access to HTTP requests. Promises are covered in subsequent topics.
$resource - Provides a higher-level abstraction for accessing REST-style services.
$document - A jQuery (lite)-wrapped reference to window.document.
$window - Is a jQuery (lite)-wrapped reference to window.
$timeout - A wrapped version of window.setTimeout. In tests, you can use $timeout.flush() to synchronously execute all scheduled timeouts.
$parse - Parses Angular expressions (eg: for binding with ng-model or similar) and provides accessor functions.
$cacheFactory - Used by other services whenever a scoped cache of elements is needed.
$filter - Provides programmatic access to a filter function.
Scope life cycle is called dirty checking
$apply is at module level
$digest works at controller level
$watch works at variable level
$scope is an object accessible from current component e.g Controller, Service.
$rootscope refers to an object accessible from everywhere of the application.
AngularJS Life Cycle
It's time to quickly look at the life cycle of AngularJS application.
There are three phases:
Bootstrap phase
Compilation phase
Runtime phase
These phases happen each time a web page is loaded in the browser.
return statement is mandatory in factory
ng-hide and ng-show
What technique angularjs uses for two way binding - unidirectional data flow
which component can be injected as dependency in angular - all
Which method is used to send a notification to the parent scope?- emit
Dependency injection into the angular module is done at which phase? - compilation phase
ng-app - directive initializes an AngularJS application.
anulgar comes with defualt css libraries to provide ui to its components - true
Which character is used to chain multiple filters - |
In controllers, model data is accessed via $scope object. - true
What is injector - its a service locator, used to retrive obj instance
Changes at each scope level of every controller is monitored by $digest
Using factory method, we first define a factory and then assign a method to it. Is it true or false? - true
Which of the following refers to view component in angular js ? - DOM
Scope act as a glue between model and controller - true
Which of the directive is used to display text? - ng-bind
Which of these is not a filter in angular - None of these (number, date ,currency all are valid)
When declaring a factory name as an injectable argument, AngularJS provides - the value returned....
When you inject a service into a controller, _______ looksup and instantiates the service for the controller. - injectpr
Which ones are singleton in AngularJS? - only service
Raise request/ticket to install Node.js on your machine.
Once installed, open 'Node.js command prompt' from your start menu.
Run the following commands:
npm config set proxy http://http-proxy.******.com:80
npm config set https-proxy http://http-proxy.******.com:80
npm set strict-ssl false = false
npm install bower -g
npm install grunt -g
npm install
bower install
grunt serve
------------------------------------------
Well-known Built-in Services
$http - Allows promise-based access to HTTP requests. Promises are covered in subsequent topics.
$resource - Provides a higher-level abstraction for accessing REST-style services.
$document - A jQuery (lite)-wrapped reference to window.document.
$window - Is a jQuery (lite)-wrapped reference to window.
$timeout - A wrapped version of window.setTimeout. In tests, you can use $timeout.flush() to synchronously execute all scheduled timeouts.
$parse - Parses Angular expressions (eg: for binding with ng-model or similar) and provides accessor functions.
$cacheFactory - Used by other services whenever a scoped cache of elements is needed.
$filter - Provides programmatic access to a filter function.
Scope life cycle is called dirty checking
$apply is at module level
$digest works at controller level
$watch works at variable level
$scope is an object accessible from current component e.g Controller, Service.
$rootscope refers to an object accessible from everywhere of the application.
AngularJS Life Cycle
It's time to quickly look at the life cycle of AngularJS application.
There are three phases:
Bootstrap phase
Compilation phase
Runtime phase
These phases happen each time a web page is loaded in the browser.
return statement is mandatory in factory
ng-hide and ng-show
What technique angularjs uses for two way binding - unidirectional data flow
which component can be injected as dependency in angular - all
Which method is used to send a notification to the parent scope?- emit
Dependency injection into the angular module is done at which phase? - compilation phase
ng-app - directive initializes an AngularJS application.
anulgar comes with defualt css libraries to provide ui to its components - true
Which character is used to chain multiple filters - |
In controllers, model data is accessed via $scope object. - true
What is injector - its a service locator, used to retrive obj instance
Changes at each scope level of every controller is monitored by $digest
Using factory method, we first define a factory and then assign a method to it. Is it true or false? - true
Which of the following refers to view component in angular js ? - DOM
Scope act as a glue between model and controller - true
Which of the directive is used to display text? - ng-bind
Which of these is not a filter in angular - None of these (number, date ,currency all are valid)
When declaring a factory name as an injectable argument, AngularJS provides - the value returned....
When you inject a service into a controller, _______ looksup and instantiates the service for the controller. - injectpr
Which ones are singleton in AngularJS? - only service
No comments:
Post a Comment