Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ember Examples

Plain HTML:

Plain Javascript:

Babel Plugin:

Codemods:

@jamesarosen

This comment has been minimized.

jamesarosen commented Jan 16, 2015

Fantastic list!

I know you're not the author on all of these examples, but I can't think of a better place to put these comments:

  1. "Opening a window" has some HTML and JS errors. Most importantly, the <a> tags are improperly closed.
  2. Don't MousetrapMixin#activate and #deactivate have to call _super()?
@rwjblue

This comment has been minimized.

Owner

rwjblue commented Jan 19, 2015

@jamesarosen - Thanks, glad you like them!

  • Fixed the "opening a window" JSBin (isn't HTMLBars validation great!).
  • RE: activate and deactivate: no, the default implementation is Ember.K so no _super should be required (unless you also have additional mixins that you may want to coordinate with).
@deivinsontejeda

This comment has been minimized.

deivinsontejeda commented Jan 19, 2015

Awesome list! Really useful.

@dowsanjack

This comment has been minimized.

dowsanjack commented Jan 19, 2015

Pretty nice, thanks :)

@mgenev

This comment has been minimized.

mgenev commented Jan 21, 2015

+infinity

@jeanlucaslima

This comment has been minimized.

jeanlucaslima commented Feb 4, 2015

+1

@mfpiccolo

This comment has been minimized.

mfpiccolo commented Feb 12, 2015

@rwjblue Many of these are not working due to :
Error: Cannot call compile without the template compiler loaded. Please load ember-template-compiler.js prior to calling compile.

Looks like this issue on beta.1: emberjs/ember.js#10265.

@rwjblue

This comment has been minimized.

Owner

rwjblue commented Feb 17, 2015

@mfpiccolo - Yep, as I access them again to reference, I am updating them. If I have a chance to review them all and get 'em updated I will....

@bradplank

This comment has been minimized.

bradplank commented Feb 21, 2015

Awesome list! I was hoping to find a example w/ Dropzone.js (http://www.dropzonejs.com/).

@Kuzirashi

This comment has been minimized.

Kuzirashi commented Apr 4, 2015

Maybe something on unit testing controllers with models and saving them?

@lessless

This comment has been minimized.

lessless commented Jun 18, 2015

here is the updated viewName example emberjs/ember.js#11156 (comment)

@JKGisMe

This comment has been minimized.

JKGisMe commented Jul 6, 2015

I use this a lot and appreciate it. :) Thanks for making it.

Not sure the proper way to suggest an edit. In this one http://emberjs.jsbin.com/rwjblue/569/edit?html,js,output there seems to be an extra - before concat in the html. I think this:

{{ef-custom-input id=(-concat elementId "-input" separator="") value=currentValue parent=this}}

should be this:

{{ef-custom-input id=(concat elementId "-input" separator="") value=currentValue parent=this}}

@Cryrivers

This comment has been minimized.

Cryrivers commented Jan 12, 2016

Really awesome list. Thanks for sharing!

@ericop

This comment has been minimized.

ericop commented Feb 3, 2016

Awesome list, and amazing reference!
Just one to add to the fix'em up list, http://emberjs.jsbin.com/rwjblue/55/edit - Using liquid-fire animations in globals mode .
If you can compile liquid-fire up to ...-liquid-fire-0.23.0.js and add ember-template-compiler.js I think you'd be most of the way there on version compatibility with Ember 2.3.

@olsi22

This comment has been minimized.

olsi22 commented Feb 17, 2017

In every example with checkbox or radio button the console gives some error and it cant run . Here is one of the pages example http://emberjs.jsbin.com/rwjblue/58/edit?html,js,output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment