bem-mvc
bem-mvc copied to clipboard
Yet another MVC for i-bem
we can implement different storage support for the model data. like localstorage or indexeddb. because there are lot of situations where developer use model to have sync with local storage...
It will be good, if we can implement server synchronisation. Like Fetching, Persisting Data in the web server.
В блоке i-glue можно задать исходные значения полей модели, например: ``` mix: [{ block: "i-glue", js: { modelName: "model-rest__creative", modelData: { id: creativeId, campaignId: campaignId, templateId: templateId } } }]...
Предполагаю, что тут https://github.com/bem/bem-mvc/blob/master/common.blocks/i-glue-field/i-glue-field.deps.js правильнее было бы декларировать нужные типы `i-glue-field` руками на проекте, чтобы не навязывать лишний код тем, кто использует только часть из них?