ember.js - Is there a way to specify which variable to use in ember relationship -


after specifying relationship between

app.post = ds.model.extend({   comments: ds.hasmany('comment') });  app.comment = ds.model.extend({   post: ds.belongsto('post') }); 

but accepts integer id in 'post' , an array of integers in 'comments' can please tell me how use any other variable reference name or title instead of array.

with associations, referencing ember models not specific types. in case comments in post model references individual comment ember objects


Comments

Popular posts from this blog

c - Calling a function within a loop -

vb.net - Unbound DataGridView add row with checkbox error -

How i fill combobox items in Radgridview manually using in vb.net -