Last active
August 29, 2015 14:07
-
-
Save monokrome/2c1c3251e3361f4b5a5d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
angular.module 'application' | |
.factory 'analysis', [ | |
'$http' | |
].concat ($http) -> | |
$http.get '/analysis/journeying.json' | |
.then (response) -> response.data |
This file contains hidden or 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
// Generated by CoffeeScript 1.7.1 | |
angular.module('application').factory('analysis', ['$http'].concat(function($http) { | |
return $http.get('/analysis/journeying.json').then(function(response) { | |
return response.data; | |
}); | |
})); |
This file contains hidden or 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
// Generated by CoffeeScript 1.7.1 | |
angular.module('application', ['partials', 'ui.router']).config(['$urlRouterProvider', '$stateProvider'].concat(function($urlRouterProvider, $stateProvider) { | |
$urlRouterProvider.otherwise('/play/'); | |
return $stateProvider.state('play', { | |
url: '/play/', | |
templateUrl: '/player.html', | |
controller: 'controllers.player', | |
resolve: { | |
'analysis': 'analysis', | |
'visualization': 'visualization' | |
} | |
}); | |
})); |
This file contains hidden or 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
angular.module 'application', ['partials', 'ui.router'] | |
.config [ | |
'$urlRouterProvider' | |
'$stateProvider' | |
].concat ($urlRouterProvider, $stateProvider) -> | |
$urlRouterProvider.otherwise '/play/' | |
$stateProvider.state 'play', | |
url: '/play/' | |
templateUrl: '/player.html' | |
controller: 'controllers.player' | |
resolve: {'analysis', 'visualization'} |
This file contains hidden or 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
angular.module 'application' | |
.controller 'controllers.player', [ | |
'$scope' | |
'$$rAF' | |
'analysis' | |
'visualization' | |
].concat ($scope, $$rAF, analysis, visualizationSource) -> | |
# More stuff... |
This file contains hidden or 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
// Generated by CoffeeScript 1.7.1 | |
angular.module('application').controller('controllers.player', ['$scope', '$$rAF', 'analysis', 'visualization'].concat(function($scope, $$rAF, analysis, visualizationSource) { | |
// More stuff... | |
})); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment