While trying to setup a jsfiddle for another question that
I asked here on SO I encountered the following problem:
I try to load the "amounts" route that should render the "amounts" template via the
{{linkTo}} helper in the "index" template. But when I click on the link I'm not beeing redirected to the "amounts" template, it just stays on the "index" template and does nothing (so I guess the "amounts" route isn't loaded too).
Handlebars Template:
<script type="text/x-handlebars" data-template-name="index">
<h1>Conversion</h1>
<label>Conversion Factor:</label>
{{view Ember.TextField valueBinding="conversionFactor"}}
{{#linkTo "amounts" }}Show Amounts{{/linkTo}}
{{outlet}}
</script>
Router setup:
// Router
App.Router.map(function() {
this.resource('amounts', function() {
this.route('new')
});
});
This is my first time with jsfiddle, so probably I misconfigured something.
I'm sure there's a simple reason why it doesn't work, but I couln't figure it out so far.
Here's the fiddle.
Any hint would be great! Thanks!