Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4838

Linking to Content on the same page & component

$
0
0

When I want to link to some content, on the same page, with standard html I would do something like:

<a href="#jsmith">Click here to learn about John Smith.</a>
 <!--  somewhere further down the page  -->
<a name="jsmith">John smith says hello</a>

I tried to replicate the code above with <LinkTo>, because I thought it was the ‘emberic’ way to do things. Besides the docs mention the whole convention over configuration idiom.

Anyway I got an error saying;

“you didn’t supply a model … #jsmith route does not exist etc”

and rightfully so in my opinion. I never added a #jsmith route to router.js.

So the example code I wrote above is not a use case of the <LinkTo> component?

The answer to this question answers on my question somewhat indirectly, so I apologize if my question is repetitive.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4838

Trending Articles