ax1 / iridiumjs

🚀 Boost HTML horsepower
MIT License
1 stars 0 forks source link

controller.create() or controller.init() #8

Closed ax1 closed 7 years ago

ax1 commented 7 years ago

Controller.create does not create an element but the controller. The other methods are read (read data) update and delete data so create should be create data (currently is the add() method)

in order to use CRUD nomenclature the name of that method should be modified

ax1 commented 7 years ago

create read update and delete are for interacting the backend of persist data.

delete is delete the resource and not an item so it is not the same.

changes in the model are executed by using model.methods(), the model then updates the view

if model changes and update the backend is required, just use data-options='autosave' in the template.