You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.
I have not found a way of passing a view to a template and rendering it using the {{view childViewName}} helper. In fact I'm quite sure that somehow helpers are broken for me (?) as I get the same error whenever I try to use other kinds of helpers (e.g. {{collection someCollection}})
The error:
Uncaught TypeError: Cannot read property '_helperName' of undefined StackOverflow to reproduce
The text was updated successfully, but these errors were encountered:
Just curious. Why aren't you using the template thorax provides? Like this...
In your router...
index: function () {
var view = new ParentView({
child: new BunnyRabbitsListView(),
});
RootView.getInstance().setView(view);
}
Then in your BunnyRabbitsListView template you can place
Same for child collections. On your route you can do something like this...
index: function () {
var bunnies = new BunnyRabbitsListView(),
var view = new ParentView({
child: new BunnyRabbitsListView({
bunnylist: bunnies
});
});
RootView.getInstance().setView(view);
}
Then in your BunnyRabbitsListView template...
{{#collection bunnylist}}
{{your bunny model attrs}}
{{/collection}}
With the version that is referenced in this generator, this bug has not been fixed like it has been in the Thorax library. Please see #149 for some more info. You can do this in Thorax proper (especially in IE11) but the fix has not been pulled downstream to this project @ChadMartinson
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have not found a way of passing a view to a template and rendering it using the {{view childViewName}} helper. In fact I'm quite sure that somehow helpers are broken for me (?) as I get the same error whenever I try to use other kinds of helpers (e.g. {{collection someCollection}})
The error:
Uncaught TypeError: Cannot read property '_helperName' of undefined
StackOverflow to reproduce
The text was updated successfully, but these errors were encountered: