Does anyone know how to link a route say PostRoute (names changed from original app), that has an equivalent controller PostController with a non-standard view say BlogPostView, in RC 3? I am using Ember Animated outlet and view, but did nothing extra as far as routes/animations are concerned for RC 1, but RC 3 gives this error). In RC 1, just declaring something like this worked, how to modify route definition to make it work with RC 3? I tried re-building ember-animated-outlet.js with RC 3, but same result (hoping that it may have been built with pre-RC 3 ember version)?
App.Router.map(function(){
...
this.route('post');
...
}
along with
<script type="text/x-handlebars" data-template-name="application">
{{animatedOutlet name="main"}}
</script>
<script type="text/x-handlebars" data-template-name="post">
{{view App.BlogPostView}}
</script>
I get this error
Ember.AnimatedContainerView can only animate non-virtual views. You need to explicitly define your view class.
I tried calling the view within renderTemplate as this.render('blogPost') so that it finds BlogPostView, but on debugging such a call returns as "undefined".
I have found that the view for the post route is identified as virtual. How to tell Ember that for this route, use this view, which is non-virtual so that it stops complaining. My BlogPostView looks like this:
App.BlogPostView = Ember.View.extend({
template: $.template('blog_post'),
didInsertElement: function() {
...
}
...
});
Thanks,
Paddy
BlogPostView
look like? – intuitivepixel