Ember.js Routing: match end of url

倖福魔咒の 提交于 2019-12-05 08:31:36

This functionality has been committed to the Ember.js repository's master branch. It is not in the 1.0.0-pre2 build, so until a new version is released you will need to either build Ember.js yourself or find a prebuilt version.

Basic Usage

Instead of prefixing your dynamic segment with a colon :, use an asterisk *. Your route will use a syntax similar to:

Ember.Route.extend({
  route: '/:repo_id/files/*path'
});

The path segment will be available just as if it were a normal dynamic property. However, it will include anything after files/ in the URL, including slashes.

There is an opened issue on Ember.js Github Tracker: https://github.com/emberjs/ember.js/issues/1451

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!