🏳️🌈
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
stepRunloop() { | |
Ember.run.begin(); | |
Ember.run.end(); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
htmlSafeEmpty: Ember.String.htmlSafe(''), | |
stringEmpty: '', | |
arrayEmpty: [] | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
xss: 'color: blue; ">Gotcha!' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import EmberObject from '@ember/object'; | |
import { Constructor } from 'ts-std'; | |
type FieldDecorator = PropertyDecorator; | |
export enum Placement { | |
Static = 'static', | |
Prototype = 'prototype', | |
Own = 'own' | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Turns the decorated generator function into a task. | |
* | |
* Optionally takes a hash of options that will be applied as modifiers to the | |
* task. For instance `maxConcurrency`, `on`, `group` or `keepLatest`. | |
* | |
* ```js | |
* import EmberObject from '@ember/object'; | |
* import { task } from 'ember-concurrency-decorators'; | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import Service from '@ember/service'; | |
import { action, computed } from '@ember/object'; | |
import { getOwner } from '@ember/application'; | |
import { reads } from '@ember/object/computed'; | |
import { assert } from '@ember/debug'; | |
import Evented from '@ember/object/evented'; | |
import CoreObject from '@ember/object/core'; | |
// Import { getEngineParent } from '@ember/engine/lib/engine-parent'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import groupBy from 'ember-awesome-macros/array/group-by'; | |
import raw from 'ember-macro-helpers/raw'; | |
export default Ember.Controller.extend({ | |
categories: [ | |
{ name: 'Hello' }, | |
{ name: 'Hallo' }, | |
{ name: 'World' }, | |
{ name: 'Welt' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from '@ember/controller'; | |
import { inject as service } from '@ember/service'; | |
import { computed } from '@ember/object'; | |
export default Controller.extend({ | |
router: service(), | |
urlFor: computed(function() { | |
return this.router.urlFor(this.router.currentRouteName); | |
}), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import { task } from 'ember-concurrency'; | |
export default Ember.Controller.extend({ | |
someTask: task(function*() { | |
console.log('🔥'); | |
}), | |
actions: { | |
performSomeTask() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
tagName: '' | |
}); |