Skip to content

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

@LowBP

Description

@LowBP

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') 
 })
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions