forked from angular-google-chart/angular-google-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sample.js
25 lines (25 loc) · 867 Bytes
/
sample.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
angular.module("google-chart-sample", ["ngRoute", "googlechart"]).config(['$routeProvider',
function ($routeProvider) {
$routeProvider.
when('/fat', {
templateUrl: 'partials/fat.html',
controller: 'FatChartCtrl'
}).
when('/annotation', {
templateUrl: 'partials/annotation.html',
controller: 'AnnotationChartCtrl'
}).
when('/generic/:chartType', {
templateUrl: 'partials/generic.html',
controller: 'GenericChartCtrl'
}).
otherwise({
redirectTo: '/fat'
});
}]).value('googleChartApiConfig', {
version: '1',
optionalSettings: {
packages: ['corechart'],
language: 'fr'
}
});