Skip to content

Instantly share code, notes, and snippets.

View jayjayjpg's full-sized avatar
🖤
git commit --fixup=HEAD~1

Jessy Jordan jayjayjpg

🖤
git commit --fixup=HEAD~1
View GitHub Profile
@jayjayjpg
jayjayjpg / controllers.application.js
Last active August 29, 2015 14:25
Ghosttyper in Ember
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
@jayjayjpg
jayjayjpg / controllers.application.js
Last active August 21, 2017 17:36
array-map-macro-w-dep-key
import Ember from 'ember';
/*import { map } from 'ember-awesome-macros'; */
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
selectedFruit: 'peach',
fruits: [{ type: 'peach' },
{ type: 'raspberry'},
@jayjayjpg
jayjayjpg / ember-cli-questions-readers-questions.md
Last active June 13, 2018 09:43
Ember CLI related Readers' Questions (Ember.js Times)
  • a) Addons have difficulty finding their ancestors and parent apps. I know this is not anything that is planning on being fixed in the near future (though I may be wrong) but I have seen multiple different approaches to this problem, including the use of the private _findHost() method, and would like to know which is the correct way to tackle this problem, or if there are several different approaches, which one to use when.
  • b) Why does ember install <foo> add to one's "devDependencies" and not "dependencies"?
@jayjayjpg
jayjayjpg / controllers.application.js
Created July 6, 2018 11:31
ember-data-32-delegate
import Ember from 'ember';
import { inject as service } from '@ember/service';
export default Ember.Controller.extend({
store: service(),
appName: 'Ember Twiddle',
someProp: null,
actions: {
setModel() {
let randomModel = this.get('store').createRecord('random'); // TODO: initialize with values or relationships
@jayjayjpg
jayjayjpg / ember-questions-readers-questions.md
Last active November 22, 2018 03:09
Ember-related Readers' Questions (Ember.js Times)
  • a) What's the status of being able to use ES classes?
  • b) I just started learning Ember and would like to get more experience with the project by contributing to it. What's a good way for me to get started in open-source work related to Ember and to get more familiar with its internals at the same time? answered by @jessica-jordan
  • c) When the re hydration will land in Ember? and what about the incremental rendering?
  • d) Why Ember ships with RSVP instead of a Promise polyfill? answered by @ef4
  • e) How is didReceiveAttrs better than observers, or is it just as bad?
  • f) Is module unification something you can use today in an app? It seems like a lot of the discussion revolves around usage in addons, corner cases, or require using canary versions of Ember. answered by @jenweber
  • g) I've seen the Glimmer site and explanation but I'm still not sure if I should be thinking about Glimmer as solving my front end lightweight framework needs. For instance, should I go ahead and assume I can use Glimme
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Component.extend({
tagName: 'button',
});
@jayjayjpg
jayjayjpg / conference-masterlist.md
Last active December 27, 2018 14:30
Submit Your Proposals! JS + Webdev Conferences 2019
import Ember from 'ember';
export default Ember.Component.extend({
});
@jayjayjpg
jayjayjpg / controllers.application.js
Last active April 25, 2019 10:25 — forked from iezer/controllers.application.js
Single Ember Data Stores 3.5b
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});