Skip to content

Instantly share code, notes, and snippets.

🔥
Ember Octane

Ricardo Mendes locks

🔥
Ember Octane
Block or report user

Report or block locks

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 Controller from '@ember/controller';
import { computed } from '@ember/object';
const values = [
0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100
];
export default Controller.extend({
sliderIndex: 1,
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
actions: {
trim(event) {
this.set('appName', event.target.value.trim());
// this.set('appName', event.target.value);
}
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
helloWorld() {
console.log(this.appName);
},
View query.ql
# Type queries into this side of the screen, and you will
# see intelligent typeaheads aware of the current GraphQL type schema,
# live syntax, and validation errors highlighted within the text.
# We'll get you started with a simple query showing your username!
query {
viewer {
organizations(first: 5) {
edges {
node {
@locks
locks / components.my-component.js
Last active Apr 24, 2019
this.prop and @arg (EmberComponent)
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.appName = "Simplabs";
}
});
@locks
locks / components.number1-problem.js
Last active Feb 2, 2019 — forked from jenweber/components.d3-trouble.js
Angle brackets bug reproduction
View components.number1-problem.js
import Ember from 'ember';
export default Ember.Component.extend({
});
View controllers.application.js
import Ember from 'ember';
import { computed, observer } from '@ember/object';
import { debounce } from '@ember/runloop';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
init() {
this._super(...arguments);
this.set('debouncedoutput', []);
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
});
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.sendAction('y');
}
});
You can’t perform that action at this time.