You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -237,27 +235,23 @@ One way to tie in the active state is to directly use the [`routerLinkActive`](h
237
235
```html
238
236
<!-- ... -->
239
237
<ng-templateigxDrawer>
240
-
<nav>
241
-
<span*ngFor="let item of componentLinks"routerLink="{{item.link}}"
242
-
igxDrawerItemigxRipple
243
-
routerLinkActive="igx-nav-drawer__item--active" >
244
-
{{item.name}}
245
-
</span>
246
-
</nav>
238
+
<span*ngFor="let item of componentLinks"routerLink="{{item.link}}"
239
+
igxDrawerItemigxRipple
240
+
routerLinkActive="igx-nav-drawer__item--active" >
241
+
{{item.name}}
242
+
</span>
247
243
</ng-template>
248
244
<!-- ... -->
249
245
```
250
246
This approach, of course, does not affect the actual directive active state and could be affected by styling changes. An alternative would be the more advanced use of `routerLinkActive` where it's assigned to a template variable and the `isActive` can be used for binding:
251
247
```html
252
248
<!-- ... -->
253
249
<ng-templateigxDrawer>
254
-
<nav>
255
-
<span*ngFor="let item of componentLinks"routerLink="{{item.link}}"
256
-
routerLinkActive#rla="routerLinkActive"
257
-
igxDrawerItemigxRipple[active]="rla.isActive">
258
-
{{item.name}}
259
-
</span>
260
-
</nav>
250
+
<span*ngFor="let item of componentLinks"routerLink="{{item.link}}"
0 commit comments