Egghead Io Angular Core Services Cheat Sheet
Egghead Io Angular Core Services Cheat Sheet
egghead.io presents
++
$exceptionHandler(exception[,
cause]) - uncaught exception in angular
expressions is delegated to this service
$fil
ter
(
name) - used for formatting data
displayed to the user
$http[(options)] - facilitates
communication with the remote HTTP servers
removeClass(element, className,
[done]) - Removes the provided className
CSS class value from the provided element
Properties:
$q - promise/deferred
implementation inspired by
kris kowals q
then(successCallback,
errorCallback, notifyCallback) calls one of the success or error callbacks
asynchronously as soon as the result is available
Methods:
addClass(element, className,
[done]) - Adds the provided className CSS
class value to the provided element
Methods:
clean-up.
getTrustedHtml(value) - Shorthand
method. $sce.getTrustedHtml(value)
$sceDelegate.getTrusted($sce.HTML, value)
getTrustedResourceUrl(value)
- Shorthand method. $sce.
getTrustedResourceUrl(value) $sceDelegate.
getTrusted($sce.RESOURCE_URL, value)
parseAsHtml(expression) - Shorthand
method. $sce.parseAsHtml(expression string)
$sce.parseAs($sce.HTML, value)
parseAsCss(expression) - Shorthand
method. $sce.parseAsCss(value) $sce.
parseAs($sce.CSS, value)
parseAsUrl(expression) - Shorthand
method. $sce.parseAsUrl(value) $sce.
parseAs($sce.URL, value)
parseAsResourceUrl(expression)
- Shorthand method. $sce.
parseAsResourceUrl(value) $sce.
parseAs($sce.RESOURCE_URL, value)
parseAsJs(expression) - Shorthand