-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
43 lines (40 loc) · 1004 Bytes
/
app.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
angular.module("chartExample", ["ui.router"])
.config(function($stateProvider, $urlRouterProvider){
$urlRouterProvider.otherwise("/bar");
// $stateProvider
// .state("home", {
// url: "/",
// templateUrl: "./views/home.html",
// controller: "homeCtrl"
// })
$stateProvider
.state("bar", {
url: "/bar",
templateUrl: "./views/bar.html",
controller: "barCtrl"
})
$stateProvider
.state("line", {
url: "/line",
templateUrl: "./views/line.html",
controller: "lineCtrl"
})
$stateProvider
.state("radar", {
url: "/radar",
templateUrl: "./views/radar.html",
controller: "radarCtrl"
})
$stateProvider
.state("polar", {
url: "/polar",
templateUrl: "./views/polar.html",
controller: "polarCtrl"
})
$stateProvider
.state("bubble", {
url: "/bubble",
templateUrl: "./views/bubbleChart.html",
controller: "bubbleCtrl"
})
});