Skip to content

Instantly share code, notes, and snippets.

Code it!

Alex Kanunnikov lifeart

Code it!
Block or report user

Report or block lifeart

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 Ember from 'ember';
const A = Ember.A;
const O = Ember.Object.create.bind(Ember.Object);
const getCpO = function(data) {
return Ember.Object.extend({
childKey: Ember.computed('children.[]', function(){
return (this.get('children')||A()).map(e=>e.toString()).join('-');
lifeart / 0
Created Feb 18, 2018 — forked from caseywatts/0
d3 & c3 npm shim to es6 module for Ember
View 0

app.import() works with node_modules now! As of Ember 2.15. Previously it only worked with bower_components and vendor.

Docs for app.import are here:

This method (vendor-shim) wraps the global export into an es6 module (but the global one is still present). It doesn't use an es6 interface even if the library offers one, but that's okay for my use case.

Things could still be easier, see this thread for the current state of that.

You can’t perform that action at this time.