$log.error()

error(); Write an error message

$log.warn()

warn(); Write a warning message

$parse

$parseProvider service in module ng Converts Angular expression into a function. var getter = $parse('user.name'); var setter = getter.assign; var context = {user:{name:'angular'}}; var locals = {user:{name:'local'}}; expect(getter(context)).toEqual('angular'); setter(context, 'newValue'); expect(context.user.name).toEqual('newValue'); expect(getter(context, locals)).toEqual('local'); Usage $parse(expression); Arguments Param Type Details expression string String expression to c

$locationProvider.hashPrefix()

hashPrefix([prefix]); Parameters Param Type Details prefix (optional) string Prefix for hash part (containing path and search) Returns * current value if used as getter or itself (chaining) if used as setter

$log.debug()

debug(); Write a debug message

$locationProvider.html5Mode()

html5Mode([mode]); Parameters Param Type Details mode (optional) booleanObject If boolean, sets html5Mode.enabled to value. If object, sets enabled, requireBase and rewriteLinks to respective values. Supported properties: enabled â {boolean} â (default: false) If true, will rely on history.pushState to change urls where supported. Will fall back to hash-prefixed paths in browsers that do not support pushState. requireBase - {boolean} - (default: true) When html5Mode is enabled, spe

$location.protocol()

protocol(); This method is getter only. Return protocol of current url. // given url http://example.com/#/some/path?foo=bar&baz=xoxo var protocol = $location.protocol(); // => "http" Returns string protocol of current url

$location.replace()

replace(); If called, all changes to $location during the current $digest will replace the current history record, instead of adding a new one.

$location.state()

state([state]); This method is getter / setter. Return the history state object when called without any parameter. Change the history state object when called with one parameter and return $location. The state object is later passed to pushState or replaceState. NOTE: This method is supported only in HTML5 mode and only in browsers supporting the HTML5 History API (i.e. methods pushState and replaceState). If you need to support older browsers (like IE9 or Android < 4.0), don't use this met

$locationProvider

$location provider in module ng Use the $locationProvider to configure how the application deep linking paths are stored. Methods hashPrefix([prefix]); Parameters Param Type Details prefix (optional) string Prefix for hash part (containing path and search) Returns * current value if used as getter or itself (chaining) if used as setter html5Mode([mode]); Parameters Param Type Details mode (optional) booleanObject If boolean, sets html5Mode.enabled to value. If object,