added foundation-angular

This commit is contained in:
didier amyot committed 2014-12-28 06:33:08 -08:00
1 parent f6ec518814
commit 72c8643e4e
7 files changed
+70 -44

No files matched your search

+2 -1
View File
@@ -1,8 +1,9 @@
define [
"angularAMD"
"angular-route"
"foundation"
], (angularAMD) ->
app = angular.module("webapp", ["ngRoute"])
app = angular.module("webapp", ["ngRoute", "mm.foundation"]) # "['mm.foundation']"
app.config ($routeProvider) ->
$routeProvider.when("/view1", angularAMD.route(
templateUrl: "partials/partial1.html"
+26 -2
View File
@@ -1,6 +1,30 @@
define ["app"], (app) ->
app.controller "MyCtrl2", ($scope) ->
$scope.message = "Message from MyCtrl2"
return
$scope.oneAtATime = true
$scope.groups = [
{
title: "Dynamic Group Header - 1"
content: "Dynamic Group Body - 1"
}
{
title: "Dynamic Group Header - 2"
content: "Dynamic Group Body - 2"
}
]
return
$scope.message = "Message from MyCtrl2"
$scope.items = [
"Item 1"
"Item 2"
"Item 3"
]
$scope.addItem = ->
newItemNo = $scope.items.length + 1
$scope.items.push("Item " + newItemNo)
return
return
+3 -1
View File
@@ -6,12 +6,14 @@ require.config
"angular" : "/bower_components/angular/angular.min"
"angular-route": "/bower_components/angular-route/angular-route.min"
"angularAMD" : "/bower_components/angularAMD/angularAMD.min"
"foundation" : "/bower_components/angular-foundation/mm-foundation-tpls"
# Add angular modules that does not support AMD out of the box, put it in a shim
shim:
angularAMD: ["angular"]
"angularAMD": ["angular"]
"angular-route": ["angular"]
"foundation" : ["angular"]
# kick start application