$location.absUrl()

absUrl();

This method is getter only.

Return full url representation with all segments encoded according to rules specified in RFC 3986.

// given url http://example.com/#/some/path?foo=bar&baz=xoxo
var absUrl = $location.absUrl();
// => "http://example.com/#/some/path?foo=bar&baz=xoxo"

Returns

string

full url

doc_AngularJS
2016-03-29 16:10:29
Comments
Leave a Comment

Please login to continue.