Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add new DS attributes dynamically in ember-pouch model #233

Open
LowBP opened this issue Oct 20, 2018 · 0 comments
Open

How to add new DS attributes dynamically in ember-pouch model #233

LowBP opened this issue Oct 20, 2018 · 0 comments

Comments

@LowBP
Copy link

LowBP commented Oct 20, 2018

I am working on table, I want to create a single model for multiple tables with different DS attributes. how can i handle this.
ex:
table1 model is column

import {  Model  } from 'ember-pouch';
export default Model.extend({
    abc: DS.attr('string'),
    bcd: DS.attr('number'),
    abcd: DS.attr('date') 
})

The same model column for table2 but DS.attribute is not same as table1
ex:

 import {  Model  } from 'ember-pouch';
 export default Model.extend({
    abc: DS.attr('number'),
    bcd: DS.attr('date'),
    abcd: DS.attr('boolean') 
 })
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant