forked from mattcreager/talks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Creager
committed
Apr 7, 2014
1 parent
1f55d9d
commit 4bb4089
Showing
10 changed files
with
103 additions
and
181 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
/* global angular */ | ||
|
||
angular.module('Buildr', [ | ||
'truncate' | ||
]); | ||
angular | ||
.module('Buildr', [ | ||
'truncate', | ||
'goangular' | ||
]) | ||
.config(function($goConnectionProvider) { | ||
$goConnectionProvider.$set('https://goinstant.net/mattcreager/buildr'); | ||
}); |
15 changes: 15 additions & 0 deletions
15
realtime-angular-model/buildr/public/components/roster/roster-controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* global angular */ | ||
|
||
var ROSTER_ID = 'dbc93961dff2a934'; | ||
|
||
(function() { 'use strict'; | ||
|
||
angular | ||
.module('Buildr') | ||
.controller('RosterCtrl', ['$scope', 'RosterModel', function($scope, Roster) { | ||
$scope.roster = Roster.$find(ROSTER_ID); | ||
$scope.roster.$getUnits(); | ||
}]); | ||
|
||
})(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 0 additions & 24 deletions
24
realtime-angular-model/buildr/public/components/rosters/roster-controller.js
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
realtime-angular-model/buildr/public/components/rosters/roster-service.js
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
realtime-angular-model/buildr/public/components/suggestion/suggestion-model.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* global angular*/ | ||
|
||
(function() { 'use strict'; | ||
|
||
angular.module('Buildr').factory('bdSuggestions', function($goKey) { | ||
var suggestions = $goKey('suggestion/'); | ||
|
||
suggestions.$removeSuggestion = function(unit) { | ||
return this.$key(unit.id).$remove(); | ||
}; | ||
|
||
suggestions.$addSuggestion = function(unit) { | ||
return this.$key(unit.id).$set(unit.$omit()); | ||
}; | ||
|
||
return suggestions; | ||
}); | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.