February 2015
Intermediate to advanced
232 pages
4h 40m
English
As we have done with the view-model, we are going to convert each model into a component and we are going to wrap it inside a module called Models, the following steps:
models/product.js file.Shop, and initialize it:var Shop;
Shop = Shop || {};Models namespace. It will be an object or the value it has before, in case it exists:Shop.Models = Shop.Models || {};Shop.Models.Product = (function(){
})()Read now
Unlock full access