agcLibraryLoaderProvider
This provider configures a service that effectively replaces the googleChartApiPromise
service used in previous versions. It was replaced to provide an interface
for configuring the Google Visualization API loader process.
It uses the angular injector to find a loader implementation by the name pattern:
"agc" + loaderName + "Loader"
Methods
Name | Description | Default Value |
---|---|---|
|
Select the loader strategy implementation to get the Google Visualization API. |
|
Example Code
(function (){
angular.module('myApp')
.config(configLoader);
configLoader.$inject = ['agcLibraryLoaderProvider'];
function configLoader(agcLibraryLoaderProvider){
// Built-in options: "jsapi", "gstatic", "null".
agcLibraryLoaderProvider.setLoader("gstatic");
}
})();