app.css |
|
331 |
app.js |
HOT MODULE SPECIFIC |
893 |
controller.js |
Take a model & view, then act as controller between them
@param {object} model The model instance
@param {object} view The view instance
|
6369 |
helpers.js |
|
1817 |
index.html |
TodoMVC: JavaScript Es6 Webpack |
1904 |
model.js |
Creates a new Model instance and hooks up the storage.
@constructor
@param {object} storage A reference to the client side storage class
|
3274 |
store.js |
HOT MODULE SPECIFIC
Since hot reload blows away class instances, storage object is
moved outside of the class.
|
4308 |
template.js |
Creates an <li> HTML string and returns it for placement in your app.
NOTE: In real life you should be using a templating engine such as Mustache
or Handlebars, however, this is a vanilla JS example.
@param {object} data The object containing keys you want to find in the
template to replace.
@returns {string} HTML String of an <li> element
@example
view.show({
id: 1,
title: "Hello World",
completed: 0,
})
|
2420 |
view.js |
eslint no-invalid-this: 0, complexity:[2, 9] |
6251 |