samedi 5 décembre 2015

Creating dynamic emberjs model

I'm developing a client application in ember that connects to a RESTful API. The thing is that the client wants the API to be able to insert new fields on the Database. The prboem is that in ember I need to denfine the model beforehand with its attributes.

I was wondering if it is possible to somehow define a dynamic model, where it connects with the API which will return a JSON with the model structure, namely fields and its datatype and then create the model on the fly.

Thanks in advance




Aucun commentaire:

Enregistrer un commentaire