googleJsapiUrlProvider

This provider is used to set the url to fetch the Google API from.

Methods

Name Description Default Value

setUrl(url);

Sets the major part of the URL.

//www.google.com/jsapi

setProtocol(protocol)

Sets the protocol to use when requesting the API.

https:

Example Code

(function(){
    angular.module('myApp')
        .config(configGoogleAPI);
    
    configGoogleAPI.$inject = ['googleJsapiUrlProvider'];
    
    function configGoogleAPI(googleJsapiUrlProvider){
        googleJsapiUrlProvider.setUrl('//www.google.com/jsapi');
    }
}();