Skip to content

Instantly share code, notes, and snippets.

Trek Glowacki trek

Block or report user

Report or block trek

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 avatar.hbs
<img class='rounded-full object-cover' src={{this.src}} alt={{this.alt}} height={{this.size}} width={{this.size}} onerror={{this.useLetterform}}>
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
foo: function(){
console.log("foo")
}
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View gist:882004ef45c9cc72c914b9059794ebed
ember generate <blueprint> <options...>
Generates new code from blueprints.
aliases: g
--dry-run (Boolean) (Default: false)
aliases: -d
--verbose (Boolean) (Default: false)
aliases: -v
--pod (Boolean) (Default: false)
aliases: -p
View components.email-form.js
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Component.extend(EmberValidations, {
validations: {
value: {
presence: { message: 'must not be blank' }
}
},
isDisabled: Ember.computed('isValid', function(){
View components.email-form.js
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Component.extend(EmberValidations, {
validations: {
value: {
presence: { message: 'must not be blank' }
}
},
isDisabled: Ember.computed('isValid', function(){
View components.email-form.js
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Component.extend(EmberValidations, {
validations: {
value: {
presence: { message: 'must not be blank' }
}
},
isDisabled: Ember.computed('isValid', function(){
View components.email-form.js
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Component.extend(EmberValidations, {
validations: {
value: {
presence: { message: 'must not be blank' }
}
},
isDisabled: Ember.computed('isValid', function(){
View components.email-form.js
import Ember from 'ember';
import EmberValidations from 'ember-validations';
export default Ember.Component.extend(EmberValidations, {
validations: {
value: {
presence: { message: 'must not be blank' }
}
},
isDisabled: Ember.computed('isValid', function(){
@trek
trek / controllers.application.js
Last active Jan 3, 2017
Routing to A Collection
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
You can’t perform that action at this time.