embersherpa / ember-helpers-render-component Goto Github PK
View Code? Open in Web Editor NEWHelper that allows you to render a component by specifying the component name
Helper that allows you to render a component by specifying the component name
Sorry if this is the wrong place to discuss this, but I'm interested in using this helper to create a dashboard with user configurable widgets. My only concern is that because it's a new project I am keen to migrate to Ember 2.0 as soon as possible.
Does this helper still have a place in Ember 2.0? Is it compatible with the React philosophies that Ember seems to be adopting?
Since this feels a bit like breaking the ember happy use case (route > controller > Template > components) it would be great to have a few examples and a bit more information on the repo Readme.md to give confidence in not just this helper but the approach in general.
Appreciate your time.
Hi, i'm using this helper to render a dashboard of widgets:
{{#each widget in model.widgets}}
{{#widget-container widget=widget}}
{{render-component widget.type}}
{{/widget-container}}
{{/each}}
I then change the type of one of the widgets:
currentWidget.set('type', newWidgetType);
This changes the type in the model of the widget but render-component doesn't respect this change and render a new component. I suppose the render-component helper needs to listen for changes to the component it was told to render in case this changes and it needs to render a different component.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.