-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Elmish" + Todo List Example? #44
Comments
While this is not a "high priority", I feel that it's good practice So ... I'm thinking of tackling it. |
var model = { 'one': 1, 'two': 2, 'three': 3 };
// save the model (data) into storage as a stringified object:
localStorage.setItem('elmish_store', JSON.stringify(model));
// Retrieve the stringified object from localStorage:
var retrieved_model = localStorage.getItem('elmish_store');
console.log('Retrieved model: ', JSON.parse(retrieved_model)); |
It's occurred to me that I have the incorrect parameter order in the |
…ead the elm(ish) docs/tutorial for #44
PR: Elm(ish) Todo List (TodoMVC) Example issue #44
Can we split the DOM-creation and
mount
code into it's own fileelmish.js
and use it as an opportunity to create a basic Todo List using TodoMVC styles?Tasks
elmish.js
(independently tested)empty
- Empty all DOM nodesmount
- mount the app to the root DOM node.<section>
<div>
<ul>
<li>
<input>
text
<h1>
<header>
<label>
<footer>
<span>
<strong>
<a>
/#/active
Rudimentary Routing in a Client-side Web Application: Why? What? How? #46localStorage
Saving / Retrieving Data to/from localStorage #47id
class
data-id
for
type
autofocus
style
placeholder
href
checked
The text was updated successfully, but these errors were encountered: