Closed antoniusostermann closed 8 years ago
AFAIK you need to keep using controllers until routable components land. Ember.Route::renderComponents
won't be in the API for one or two more versions.
The recent refactor was written with this exact use case in mind so it's likely that there is some property reference amiss rather than an architectural issue. My guess is that it's related to this code.
I'll need to make a test locally before I can confirm that though. We'll also need to increase the acceptance test coverage for this 'component usage' because this library is lacking that (in fact more acceptance tests need to be added in general).
Perhaps we could also have a mixin at the path ember-easy-form-extensions/mixins/components/form.js
to easy future upgrading - this would just export the controller mixin.
Fixed with #48 (released as 2.0.0
).
(Ember: 1.13.3, EmberData: 1.13.5, easyFormExtensions: 1.0.2)
As you may know, using controllers is deprecated in ember. Because of this I never create any controller, doing everything in routes or components (like stated in http://thetechcofounder.com/getting-started-with-ember-js-using-ember-cli/). If I use this extension in my route like this:
with this template:
I currently get
linking to
Could you maybe give an example on how to use this with routes (also to make it compatible with future ember versions)?