Skip to content

Instantly share code, notes, and snippets.

@bj-mcduck
Created April 18, 2014 19:02
Show Gist options
  • Save bj-mcduck/11059464 to your computer and use it in GitHub Desktop.
Save bj-mcduck/11059464 to your computer and use it in GitHub Desktop.
Get stripped version of object array
App.DreamSymbolsNewController = Ember.ObjectController.extend
value: null
categories: (->
# [
# {
# id: 1
# name: "red"
# }
# {
# id: 3
# name: "blue"
# }
# {
# id: 2
# name: "green"
# }
# ]
list = []
test = @store.find('dream_symbol').then
symbols.each (symbol)->
console.log 'woot'
list.push symbols
list
).property 'dream_symbol.@each.name'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment