Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jayphelps/thoughts
https://github.com/jayphelps/thoughts
Last synced: 21 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jayphelps/thoughts
- Owner: jayphelps
- Created: 2015-02-23T04:24:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-23T05:56:08.000Z (over 9 years ago)
- Last Synced: 2023-03-22T22:37:18.940Z (over 1 year ago)
- Language: JavaScript
- Size: 87.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Remove explicit data bindings
`User` route:
```javascript
import Route from 'ember/route';export default Route.extend({
model(params) {
/*
"user": {
"email": "[email protected]",
"username": "John Doyle"
}
*/
return this.store.find('user', params.userId);
}
});
``````html
{{user-profile}}
````User` decorator:
```javascript
export default interface UserMetadata {
email: string,
username: string
}
````UserProfile` component:
```javascript
import Component from 'ember/component';export default Component.extend();
``````html
Email: {{email}}
Username: {{username}}
```