Skip to content

Instantly share code, notes, and snippets.

Robert Jackson rwjblue

Block or report user

Report or block rwjblue

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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'
});
View components.yields-name.js
import Ember from 'ember';
export default Ember.Component.extend({
name: 'yields-name-here'
});
View components.foo-bar.js
import Ember from 'ember';
export default Ember.Component.extend({
classNames: 'asdf'
});
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';
const { Controller, inject } = Ember;
export default Controller.extend({
display: inject.service(),
actions: {
toggle() {
this.get('display').toggleVisibility();
}
@rwjblue
rwjblue / components.my-button.js
Created Jul 27, 2017 — forked from Panman82/components.my-button.js
Closure action target option and context
View components.my-button.js
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'button'
});
View controllers.application.js
import Ember from 'ember';
const { Controller, inject } = Ember;
export default Controller.extend({
display: inject.service(),
actions: {
toggle() {
this.get('display').toggleVisibility();
}
You can’t perform that action at this time.