AngularJS Tutorial - Part 4

preview_player
Показать описание
This is the AngularJS tutorial. This covers the below listed built-in services.

$scope : object in the controller, the view (HTML) gets access to these properties

$rootScope : This service is useful to access the application's main and top level scope.

$http : is one of the most common used services in AngularJS applications. The service makes a request to the server, and lets your application handle the response

$filter : AngularJS provides filters to transform data
currency - Format a number to a currency format.
date - Format a date to a specified format.
filter - Select a subset of items from an array.
json - Format an object to a JSON string.
limitTo - Limits an array/string, into a specified number of elements/characters.
lowercase - Format a string to lower case.
number - Format a number to a string.
orderBy - Orders an array by an expression.
uppercase - Format a string to upper case.

$cookies : This service is useful to write, read and delete browser cookies.

$window : This service is similar to reference to the browser's window object.

$log : This service is useful to write error, info, warning and debugging into the browser's console.

$parse : This service is useful to convert AngularJS expression into a function.

$exceptionHandler : This service is useful to handle an uncaught exception in angular expressions by overriding the default exception handler behaviour.

$templateCache : This service is useful to set form within a form.

$cacheFactory : This service evaluates specified expression when the user changes the input.

$anchorScroll : This service is useful to set checkbox checked.

$rootElement : This service is useful to access root element.

The demo source code is available in below GitHub

Рекомендации по теме
visit shbcf.ru