Skip to content

Instantly share code, notes, and snippets.

@Enome
Last active December 11, 2015 01:39
Show Gist options
  • Save Enome/4525325 to your computer and use it in GitHub Desktop.
Save Enome/4525325 to your computer and use it in GitHub Desktop.
var controllers = {
GrowsIndexCtrl: function ($scope, data) {
$scope.grows = data.grows.many(); // Returns an array
$scope.remove = function (grow) {
data.grows.remove(grow); // Deletes from that same array
};
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment