-
Notifications
You must be signed in to change notification settings - Fork 12
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
Use microstates library i.e. a new API #69
Commits on Jun 5, 2018
-
Ilya Radchenko committed
Jun 5, 2018 Configuration menu - View commit details
-
Copy full SHA for f91298f - Browse repository at this point
Copy the full SHA f91298fView commit details -
Ilya Radchenko committed
Jun 5, 2018 Configuration menu - View commit details
-
Copy full SHA for e7ea339 - Browse repository at this point
Copy the full SHA e7ea339View commit details
Commits on Jun 6, 2018
-
Ilya Radchenko committed
Jun 6, 2018 Configuration menu - View commit details
-
Copy full SHA for 4abb602 - Browse repository at this point
Copy the full SHA 4abb602View commit details -
feat: start state-for implementation
Ilya Radchenko committedJun 6, 2018 Configuration menu - View commit details
-
Copy full SHA for 6f68d5a - Browse repository at this point
Copy the full SHA 6f68d5aView commit details
Commits on Jun 7, 2018
-
feat: Get a basic version working
Ilya Radchenko committedJun 7, 2018 Configuration menu - View commit details
-
Copy full SHA for 4703426 - Browse repository at this point
Copy the full SHA 4703426View commit details -
fix: update readme to use new api in examples
Ilya Radchenko committedJun 7, 2018 Configuration menu - View commit details
-
Copy full SHA for a0f6d1a - Browse repository at this point
Copy the full SHA a0f6d1aView commit details -
Ilya Radchenko committed
Jun 7, 2018 Configuration menu - View commit details
-
Copy full SHA for 3bbde3a - Browse repository at this point
Copy the full SHA 3bbde3aView commit details -
Ilya Radchenko committed
Jun 7, 2018 Configuration menu - View commit details
-
Copy full SHA for af7cfb5 - Browse repository at this point
Copy the full SHA af7cfb5View commit details
Commits on Jun 10, 2018
-
```js import { Service } from 'ember-microstates'; class User { name = String; email = String; superuser = Boolean; } export default Service.extend({ typeClass: User, defaultValue() { return { superuser: false }; } }); ``` ```js import Controller from '@ember/controller'; import { inject as service } from '@ember/service'; import { alias } from '@ember/object/computed'; export default Controller.extend({ currentUserService: service('user'), user: alias('currentUserService.microstate'), actions: { save() { let userMicrostate = this.user; let value = userMicrostate.valueOf(); alert(JSON.stringify(value)); } } }); ``` ```hbs <form {{action 'save' on='submit'}}> <input type='text' placeholder='Name' oninput={{invoke user.name 'set' value='target.value'}}> <input type='text' placeholder='Email' oninput={{invoke user.email 'set' value='target.value'}}> <label> Is an admin? <input type='checkbox' checked={{user.state.superuser}} onchange={{invoke user.superuser 'toggle' value='target.checked'}}> </label> <button>Submit</button> </form> ```
Ilya Radchenko committedJun 10, 2018 Configuration menu - View commit details
-
Copy full SHA for dcddd3b - Browse repository at this point
Copy the full SHA dcddd3bView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0f988b - Browse repository at this point
Copy the full SHA d0f988bView commit details -
fix: update the readme for services
Ilya Radchenko committedJun 10, 2018 Configuration menu - View commit details
-
Copy full SHA for 32f14f3 - Browse repository at this point
Copy the full SHA 32f14f3View commit details
Commits on Jun 12, 2018
-
fix: use published beta microstates
Ilya Radchenko committedJun 12, 2018 Configuration menu - View commit details
-
Copy full SHA for fe85e2a - Browse repository at this point
Copy the full SHA fe85e2aView commit details -
fix: don't pas anything as args if invoke
value
isfalse
Ilya Radchenko committedJun 12, 2018 Configuration menu - View commit details
-
Copy full SHA for 9748892 - Browse repository at this point
Copy the full SHA 9748892View commit details -
fix(dummy): use state on the value
Ilya Radchenko committedJun 12, 2018 Configuration menu - View commit details
-
Copy full SHA for 2fa9863 - Browse repository at this point
Copy the full SHA 2fa9863View commit details -
chore(dummy): add a second component using the same type
Ilya Radchenko committedJun 12, 2018 Configuration menu - View commit details
-
Copy full SHA for 9438c53 - Browse repository at this point
Copy the full SHA 9438c53View commit details
Commits on Jun 18, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 0747079 - Browse repository at this point
Copy the full SHA 0747079View commit details
Commits on Jun 19, 2018
-
Configuration menu - View commit details
-
Copy full SHA for da4fb72 - Browse repository at this point
Copy the full SHA da4fb72View commit details -
Configuration menu - View commit details
-
Copy full SHA for ab84083 - Browse repository at this point
Copy the full SHA ab84083View commit details -
Configuration menu - View commit details
-
Copy full SHA for 05f45f7 - Browse repository at this point
Copy the full SHA 05f45f7View commit details
Commits on Jun 20, 2018
-
Configuration menu - View commit details
-
Copy full SHA for 94ef7f7 - Browse repository at this point
Copy the full SHA 94ef7f7View commit details
Commits on Jul 1, 2018
-
Merge branch 'update' of github.com:knownasilya/ember-microstates int…
…o update
Ilya Radchenko committedJul 1, 2018 Configuration menu - View commit details
-
Copy full SHA for 4690f4a - Browse repository at this point
Copy the full SHA 4690f4aView commit details -
fix: update to use a function that takes a microstate and creates a s…
…ervice
Ilya Radchenko committedJul 1, 2018 Configuration menu - View commit details
-
Copy full SHA for cfeecfa - Browse repository at this point
Copy the full SHA cfeecfaView commit details
Commits on Aug 13, 2018
-
Ilya Radchenko committed
Aug 13, 2018 Configuration menu - View commit details
-
Copy full SHA for 548d6a3 - Browse repository at this point
Copy the full SHA 548d6a3View commit details -
fix: update to new version of microstates
Remove custom function for setting up a service since microstates are much simpler to setup now.
Ilya Radchenko committedAug 13, 2018 Configuration menu - View commit details
-
Copy full SHA for 9d16c4e - Browse repository at this point
Copy the full SHA 9d16c4eView commit details
Commits on Sep 11, 2018
-
Ilya Radchenko committed
Sep 11, 2018 Configuration menu - View commit details
-
Copy full SHA for 0976aa8 - Browse repository at this point
Copy the full SHA 0976aa8View commit details
Commits on Sep 12, 2018
-
Ilya Radchenko committed
Sep 12, 2018 Configuration menu - View commit details
-
Copy full SHA for 4f93e0c - Browse repository at this point
Copy the full SHA 4f93e0cView commit details