Client-side Javascript app - url routing with no hash tag

后端 未结 4 1723
长情又很酷
长情又很酷 2020-12-02 13:34

I\'m working on a new client-side only app with the latest version of Ember.js. There is a single PHP page which builds the scripts, css, template files, etc. and delivers i

4条回答
  •  臣服心动
    2020-12-02 14:28

    @Pascal: He's not talking about actual page refreshes, but rather using Ember's history (location: 'history').

    To answer your question, you will need to configure your .htaccess to serve up the content as usual to the JavaScript. Once your URLs are configured to load your application, then Ember will take care of everything for you as usual from the URL.

提交回复
热议问题