Created
August 6, 2014 14:59
-
-
Save jacksonhoose/206549d3cc8b7d240d37 to your computer and use it in GitHub Desktop.
angular controller
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
'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