googleJsapiUrlProvider
This provider is used to set the url to fetch the Google API from.
Methods
Name | Description | Default Value |
---|---|---|
|
Sets the major part of the URL. |
|
|
Sets the protocol to use when requesting the API. |
|
Example Code
(function(){
angular.module('myApp')
.config(configGoogleAPI);
configGoogleAPI.$inject = ['googleJsapiUrlProvider'];
function configGoogleAPI(googleJsapiUrlProvider){
googleJsapiUrlProvider.setUrl('//www.google.com/jsapi');
}
}();