Skip to content

Instantly share code, notes, and snippets.

@dcramer
Created October 1, 2013 07:36
Show Gist options
  • Save dcramer/6775018 to your computer and use it in GitHub Desktop.
Save dcramer/6775018 to your computer and use it in GitHub Desktop.
var Changes = angular.module('Changes', ['ngAnimate', 'ngRoute']).
config(['$routeProvider', function($routeProvider) {
$routeProvider.
when('/', {
templateUrl: 'partials/change-list.html',
resolve: {
initialData: function($http) {
return $http.get('/api/0/changes/');
}
},
controller: ChangeListCtrl
}).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment