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 |
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"
string |
protocol of current url |
Please login to continue.