@southpolesteve in ember with ember-data I want to have lazily-loaded attributes (like previewData), what's the best way to do that?
-
-
@southpolesteve yeah, like a model owns data (10k rows), don't want to always load. I'm doing url construction in the model. Seems wrong -
@southpolesteve eg dataUrl: Ember.computed('id', function() { return '/api/model/' + id + '/data'}) <- seems totally the wrong way to do it -
@southpolesteve I've thought about having a fake model called 'data', keyed by the same ID, but that seems wrong too. Thoughts? -
@southpolesteve are read-only models a thing? Googling didn't seem to say it was -
@rathboma I believe you can set a readOnly computed property. Not sure if you can make the whole model read only.
End of conversation
New conversation -
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.