Instantly share code, notes, and snippets.

View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'span',
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
foos: ['hello', 'goodbye', 'maybe'],
bar: 'maybe'
});
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
arr: Ember.A([]),
theLength: Ember.computed('arr[]', function() {
return this.get('arr').length;
}),
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: ['green-border']
});
View components.data-binding.js
import Ember from 'ember';
function logLifeCicle(name) {
return function() {
console.log(name, ...arguments);
};
}
export default Ember.Component.extend({
bar: 0,
View components.data-binding.js
import Ember from 'ember';
function logLifeCicle(name) {
return function() {
console.log(name, arguments);
};
}
export default Ember.Component.extend({
bar: 0,
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});