moved to angularAMD

This commit is contained in:
didier amyot committed 2014-12-27 18:13:41 -08:00
1 parent 823ecdd500
commit c251432e54
13 files changed
+75 -166

No files matched your search

+16 -15
View File
@@ -1,17 +1,18 @@
define [
"angular"
"filters"
"services"
"directives"
"controllers"
"angularRoute"
], (angular, filters, services, directives, controllers) ->
"angularAMD"
"angular-route"
], (angularAMD) ->
app = angular.module("webapp", ["ngRoute"])
app.config ($routeProvider) ->
$routeProvider.when("/view1", angularAMD.route(
templateUrl: "partials/partial1.html"
controller: "MyCtrl1"
controllerUrl: "controllers/myctrl1"
)).when("/view2", angularAMD.route(
templateUrl: "partials/partial2.html"
controller: "MyCtrl2"
controllerUrl: "controllers/myctrl2"
)).otherwise redirectTo: "/view1"
return
# Declare app level module which depends on filters, and services
angular.module "myApp", [
"ngRoute"
"myApp.filters"
"myApp.services"
"myApp.directives"
"myApp.controllers"
]
angularAMD.bootstrap app