Skip to content

Instantly share code, notes, and snippets.

Marten martndemus

Block or report user

Report or block martndemus

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 httpd-vhosts.conf
<VirtualHost *:8080>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/Users/martndemus/Projects/DockYard/smart-shopping-list/dist"
ServerName localhost
<Directory "/Users/martndemus/Projects/DockYard/smart-shopping-list/dist">
AllowOverride All
Require all granted
Header unset ETag
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
componentId: 'foo'
});
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
computedProperty: Ember.computed(function(key) {
return key;
})
});
View controllers.application.js
import Ember from 'ember';
import {
validatePresence,
validateFormat,
} from 'ember-changeset-validations/validators';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
validation: {
View components.my-component.js
import Ember from 'ember';
export default Ember.Component.extend({
layout: Ember.computed(function () {
return Ember.getOwner(this).lookup('template:my-component');
})
});
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
items: Ember.computed(function() {
let object = Ember.Object.create();
console.log('Before using Ember.set', Object.keys(object))
Ember.set(object, 'one', 'foo');
console.log('After using Ember.set', Object.keys(object));
return object;
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
foo: false,
showFoo: true,
actions: {
hideComponent() {
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
toggleCompleted(todo) {
todo.toggleProperty('completed');
},
createTodo(description) {
this.store.createRecord('todo', { description, completed: false });
},
View application.controller.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
You can’t perform that action at this time.