Created
January 24, 2013 09:18
-
-
Save jackkitley/4619021 to your computer and use it in GitHub Desktop.
New ember js pre 4 problem
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
App.DashboardController = Em.ArrayController.extend({ | |
content: [], | |
contentRecent: Em.ArrayController.create({ | |
content: [], | |
count: Em.computed(function() { | |
return this.get('content').length; | |
}).property('content.@each') | |
}), |
zeppelin
commented
Jan 24, 2013
Fuck, forgot the -Controller
from the RecentItems
. Of course, it's RecentItemsController
...
Updated the example.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment