first commit

This commit is contained in:
didier amyot committed 2014-12-27 17:27:21 -08:00
commit 823ecdd500
26 files changed
+2110

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
define [
"angular"
"app"
], (angular, app) ->
app.config [
"$routeProvider"
($routeProvider) ->
$routeProvider.when "/view1",
templateUrl: "/partials/partial1.html"
controller: "MyCtrl1"
$routeProvider.when "/view2",
templateUrl: "/partials/partial2.html"
controller: "MyCtrl2"
$routeProvider.otherwise redirectTo: "/view1"
]