Closed kolkov closed 8 years ago
This is a bug in ui-router-ng2. The UISrefActive is only working if the UISref is on the same element.
The bug is from how we access the UISref, by injecting it into the constructor here: https://github.com/angular-ui/ui-router/blob/master/src/ng2/directives/uiSrefStatus.ts#L58
We should probably be using the ContentChild
feature to find the child UISref(s): https://angular.io/docs/ts/latest/api/core/index/ContentChild-var.html
Thanks!
This fixed in pre 1.0.0-beta.2! Thanks!
Hi! I try to use this template for my own project, and I get this error:
What this?