Skip to content

Instantly share code, notes, and snippets.

@jacksonhoose
Created August 6, 2014 14:59
Show Gist options
  • Save jacksonhoose/206549d3cc8b7d240d37 to your computer and use it in GitHub Desktop.
Save jacksonhoose/206549d3cc8b7d240d37 to your computer and use it in GitHub Desktop.
angular controller
'use strict';
function LocationCtrl (locations) {
this.locations = locations.locations;
}
LocationCtrl.resolve = {
locations: function(Data) {
return Data.all(1);
}
};
LocationCtrl.$inject = ['Data'];
angular
.module('prestoBistro')
.controller('LocationCtrl', LocationCtrl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment