dimanche 15 mai 2016

Ember.js Model Architectur with roles and states

I am currently diving into Ember.js. I have started a new project which should handle todo tasks.

However I have some problems in translating the database architecture and/or OOP architecture to an ember model architecture.

What I would like to have is:

a task which has the following attributes: id, title, state ('open', 'closed'), editor, creator, createdAt, modifiedAt

The point were I stuck is:

  • how to abstract the state (in OOP I would create a struct for this)
  • how to abstract the editor/creator thing

I would be glad if anyone would have a suggestion for me since the Ember.js documentation only covers basic use cases and is lack of things like states.




Aucun commentaire:

Enregistrer un commentaire