Skip to content

Instantly share code, notes, and snippets.

View hjumeau's full-sized avatar

Harry JUMEAU hjumeau

  • Paris
View GitHub Profile
import Ember from 'ember';
var Person = Ember.Object.extend({
firstName: null,
lastName: null,
age: null,
country: null,
dateOfDeath: null,
fullName: Ember.computed('firstName', 'lastName', function() {
@hjumeau
hjumeau / application.controller.js
Last active February 29, 2016 21:15
classesAndInstances
import Ember from 'ember';
var Person = Ember.Object.extend({
say(thing) {
var name = this.get('name');
alert(`${name} says: ${thing}`);
}
});
var Soldier = Person.extend({
import Ember from 'ember';
var Person = Ember.Object.extend({
// these will be supplied by `create`
firstName: null,
lastName: null,
fullName: Ember.computed('firstName', 'lastName', function() {
return `${this.get('firstName')} ${this.get('lastName')}`;
}),
@hjumeau
hjumeau / about.template.hbs
Created January 5, 2016 17:05
Basic Routes
About content
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember 2.0'
});
@hjumeau
hjumeau / application.controller.js
Last active January 11, 2016 14:10
DynamicSegments
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember 2.0'
});
@hjumeau
hjumeau / application.controller.js
Last active January 12, 2016 09:23
RenderingATemplateExp
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember 2.0'
});
@hjumeau
hjumeau / application.controller.js
Created January 12, 2016 09:54
RenderingATemplate
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@hjumeau
hjumeau / application.controller.js
Last active January 14, 2016 16:52
Redirecting
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember 2.0'
});