docs(router): fix missing export in docs for UrlMatcher (#21095)

Fixes #21042

PR Close #21095
This commit is contained in:
Jason Aden 2017-12-19 15:53:22 -08:00 committed by Kara Erickson
parent 2402224b4e
commit b5934fc582
1 changed files with 3 additions and 3 deletions

View File

@ -277,11 +277,11 @@ export type UrlMatchResult = {
* For instance, the following matcher matches html files.
*
* ```
* function htmlFiles(url: UrlSegment[]) {
* export function htmlFiles(url: UrlSegment[]) {
* return url.length === 1 && url[0].path.endsWith('.html') ? ({consumed: url}) : null;
* }
*
* const routes = [{ matcher: htmlFiles, component: HtmlCmp }];
* export const routes = [{ matcher: htmlFiles, component: AnyComponent }];
* ```
*
* @experimental