View components.toggle-pill.js
import Ember from 'ember';
export default Ember.Component.extend({
isChecked: false,
label: 'laber before input'
});
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'
});
// Broken on 2.10.2
// Works as expected on 2.9.1
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
// Broken on 2.10.2
// Works as expected on 2.9.1
View components.my-pokemon.js
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.name = 'Pikachu';
},
pokemon: Ember.computed('name', function() {
let url = `https://pokeapi.co/api/v2/pokemon/${this.get('name')}`.toLowerCase();
View components.my-pokemon.js
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.name = 'Pikachu';
},
pokemon: Ember.computed('name', function() {
let url = `https://pokeapi.co/api/v2/pokemon/${this.get('name')}`.toLowerCase();
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
init() {
this._super(...arguments);
this.set('items', []);
Ember.run.later(() => this.set('items', [1]), 1000);
},
toString() {
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
this.set('items', []);
window.x = this;
},
length: Ember.comptued.readOnly('items.length'),
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
init() {
this._super(...arguments);
this.a = 1;
this.b = 0.5;
},
abs: Ember.computed('a', 'b', function() {
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});