AngularJS - Route - How to match star (*) as a path

后端 未结 2 499
甜味超标
甜味超标 2020-12-06 17:36

I\'m making a resource viewer app, but the problem is that i tried to match when(\"/!/:resourceUrl\").

It works fine if the resource url is something l

2条回答
  •  不知归路
    2020-12-06 18:13

    As of now, AngularJS doesn't support regular expressions in routes.

    Check these links: https://github.com/angular/angular.js/issues/918, https://github.com/angular/angular.js/pull/972

提交回复
热议问题