Created
November 13, 2013 00:00
-
-
Save SinisterMinister/7441031 to your computer and use it in GitHub Desktop.
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
Kumo.AppsNewController = Ember.ObjectController.extend(Ember.PromiseProxyMixin, { | |
projects: null, | |
selectedProject: null, | |
repositories: null, | |
repositoriesGetter: function () { | |
var self = this; | |
return ORM.factory('repository').where('projectId').isEqual(this.get('selectedProject.id')).findAll().then(function (data) { | |
self.set('repositories', data); | |
}); | |
}.observes('selectedProject') | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why not do something like this??
and in your AppsNewView template