Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jayphelps/thoughts


https://github.com/jayphelps/thoughts

Last synced: 21 days ago
JSON representation

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}}
```