ember.js - Change model type to subclass -


my app deals ton of data call 'subdata' (because it's child of real data , not independent). follow similar format: have ids, type , pointer parent element. works fine in ember.js way have now. server has no notion of type (just field of object), client does. have different ember.js models each type can each have different properties.

my problem need convert normal subdata typed subdata. in adapter , transform json gets in. found more elegant way using filterproperty method. can make properties filter based on mixed subdata array. ignoring performance (which i'm not worried about), seems cleaner method.

however, resulting array returned filterproperty array of subdatamodels. how can convert models particular subclass of subdatamodel?


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -