angular.dart icon indicating copy to clipboard operation
angular.dart copied to clipboard

Allows NgRouteCfg to take path of type Pattern

Open j-jiafei opened this issue 10 years ago • 1 comments

Currently NgRouteCfg only accepts path of type String, which implements Pattern.

It will be useful if NgRouteCfg could take path of type Pattern, which will allow other subclass of Pattern to be used directly for matching.

j-jiafei avatar Oct 01 '15 20:10 j-jiafei

To be clear, this is for Dart. In Dart, String and RegExp are subtypes of Pattern.

skybrian avatar Oct 01 '15 21:10 skybrian