Skip to content

Instantly share code, notes, and snippets.

@andreaseriksson
Created March 31, 2015 10:21
Show Gist options
  • Save andreaseriksson/f79352500368c28c6ba5 to your computer and use it in GitHub Desktop.
Save andreaseriksson/f79352500368c28c6ba5 to your computer and use it in GitHub Desktop.
<h1>{{firstName}} {{lastName}}</h1>
<dl>
<dt>Email</dt>
<dd>{{email}}</dd>
<dt>Title</dt>
<dd>{{title}}</dd>
</dl>
<p>
Updated at: {{formatted-date updatedAt 'MMMM Do, YYYY [at] h:mm a'}}
<br>
Created at: {{formatted-date createdAt 'MMMM Do, YYYY [at] h:mm a'}}
</p>
<button class="btn" {{action 'showAlert' model}}>Alert</button>
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
showAlert: function(contact) {
alert('Hello ' + contact.get('firstName'));
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment