justinfagnani / route

A client + server routing library for Dart
BSD 3-Clause "New" or "Revised" License
114 stars 40 forks source link

Route.addRoute expects a Pattern #54

Closed TedSander closed 10 years ago

TedSander commented 10 years ago

The call signature to Route.addRoute expects a Pattern, but in the code it is looking for either a string representation to pass to UrlTemplate, or a UrlMatcher itself.

In checked mode this forces an object to implement Pattern even though only the UrlMatcher interface is required.

pavelgj commented 10 years ago

Track here: https://github.com/angular/route.dart/issues/2