Skip to content

Instantly share code, notes, and snippets.

@jacksonhoose
Created August 6, 2014 16:01
Show Gist options
  • Save jacksonhoose/52dc6cc4bea5e678d81a to your computer and use it in GitHub Desktop.
Save jacksonhoose/52dc6cc4bea5e678d81a to your computer and use it in GitHub Desktop.
'use strict';
function LocationCtrl (resolvedLocation) {
this.locations = resolvedLocation;
}
LocationCtrl.resolve = {
resolvedLocation: function(Data) {
return Data.all(1);
}
};
angular
.module('myApp')
.controller('LocationCtrl', LocationCtrl);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment