first commit
This commit is contained in:
commit
b2502bd29e
19 files changed
+556
No files matched your search
@@ -0,0 +1,17 @@
|
||||
define [
|
||||
"angular"
|
||||
"app"
|
||||
], (angular, app) ->
|
||||
app.config [
|
||||
"$routeProvider"
|
||||
($routeProvider) ->
|
||||
$routeProvider.when "/view1",
|
||||
templateUrl: "app/partials/partial1.html"
|
||||
controller: "MyCtrl1"
|
||||
|
||||
$routeProvider.when "/view2",
|
||||
templateUrl: "app/partials/partial2.html"
|
||||
controller: "MyCtrl2"
|
||||
|
||||
$routeProvider.otherwise redirectTo: "/view1"
|
||||
]
|
||||
Reference in new issue
Block a user