I have an Ember js app, with pushstate enabled. Say I am on a page www.xyz.com/start
and I have proper link on the page (www.xyz.com/abc/def
) and I have defined route in ember for /abc/def
. But every time I click on the link, the page is reloaded instead of directly being served by the Ember router. What is the correct way to do this?
相关问题
- Inserting a translation into a placeholder with Em
- Can't find module on migrating ember-cli app t
- How to get the value of a checkbox of a template i
- ember component based on model type
- ember Error: Compile Error: is not a helper
相关文章
- How to use autofocus with ember.js templates?
- Including dependencies with ember-cli
- Pass a reference of the clicked DOM element to the
- Ember upgrade breaks one test, and only in Safari
- ember testing Error Adapter operation failed
- Ember : addObject/ pushObject is not a function
- Ember: use controller data in route or how to fetc
- Setting tagName on application template in ember j
When you say a "proper link" do you mean an
<a href>
tag? If so, you should be using the {{link-to}} helper instead. See http://emberjs.com/guides/templates/links/You have to use the link-to helper instead of basic a href links.
Where 'abc/def' is the route name.
See : http://emberjs.com/guides/templates/links/