From d55f74785877ef6a9dd37947f7e930bc0008ff0b Mon Sep 17 00:00:00 2001 From: Ferdinand Malcher Date: Tue, 18 Oct 2016 07:53:55 +0200 Subject: [PATCH] docs(router): attribute notation for string paths (#12205) Either bind an expression or use the attribute notation. The mixed way `[routerLink]="/path"` won't work. Prefer the attribute notation for string-only paths --- .../router/src/directives/router_link_active.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/@angular/router/src/directives/router_link_active.ts b/modules/@angular/router/src/directives/router_link_active.ts index 49867f5150..a66a6142d2 100644 --- a/modules/@angular/router/src/directives/router_link_active.ts +++ b/modules/@angular/router/src/directives/router_link_active.ts @@ -20,7 +20,7 @@ import {RouterLink, RouterLinkWithHref} from './router_link'; * @howToUse * * ``` - * Bob + * Bob * ``` * * @description @@ -31,7 +31,7 @@ import {RouterLink, RouterLinkWithHref} from './router_link'; * Consider the following example: * * ``` - * Bob + * Bob * ``` * * When the url is either '/user' or '/user/bob', the active-link class will @@ -40,15 +40,15 @@ import {RouterLink, RouterLinkWithHref} from './router_link'; * You can set more than one class, as follows: * * ``` - * Bob - * Bob + * Bob + * Bob * ``` * * You can configure RouterLinkActive by passing `exact: true`. This will add the classes * only when the url matches the link exactly. * * ``` - * Bob * ``` * @@ -56,8 +56,8 @@ import {RouterLink, RouterLinkWithHref} from './router_link'; * * ``` *
- * Jim - * Bob + * Jim + * Bob *
* ``` *