Slide 130
Slide 130 text
Loading routes on
demand.
[
{
path: 'home',
getComponent(location, cb) {
System.import('./containers/Home')
.then(loadRoute(cb));
},
},
{
path: 'products',
getComponent(location, cb) {
System.import('./containers/Products)
.then(loadRoute(cb));
},
},
{
path: 'shopping-cart',
getComponent(location, cb) {
System.import('./containers/ShoppingCart')
.then(loadRoute(cb));
},
},
]