@southpolesteve in ember with ember-data I want to have lazily-loaded attributes (like previewData), what's the best way to do that?
-
-
Replying to @southpolesteve
@southpolesteve yeah, like a model owns data (10k rows), don't want to always load. I'm doing url construction in the model. Seems wrong1 reply 0 retweets 0 likes -
Replying to @rathboma
@southpolesteve eg dataUrl: Ember.computed('id', function() { return '/api/model/' + id + '/data'}) <- seems totally the wrong way to do it1 reply 0 retweets 0 likes -
Replying to @rathboma
@southpolesteve I've thought about having a fake model called 'data', keyed by the same ID, but that seems wrong too. Thoughts?2 replies 0 retweets 0 likes -
Replying to @southpolesteve
@southpolesteve are read-only models a thing? Googling didn't seem to say it was2 replies 0 retweets 0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.