Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UiSrefActive not splitting classes as it should #198

Closed
floreks opened this issue Jan 29, 2018 · 0 comments
Closed

UiSrefActive not splitting classes as it should #198

floreks opened this issue Jan 29, 2018 · 0 comments

Comments

@floreks
Copy link

floreks commented Jan 29, 2018

I have tried to use uiSrefActive with multiple classes and it does not work. It appears that there is an issue with these lines:

@Input('uiSrefActive') set active(val: string) { this._classes = val.split('\s+')};

@Input('uiSrefActiveEq') set activeEq(val: string) { this._classesEq = val.split('\s+')};

Check this snippet that reproduces the issue and shows how it should be implemented.
https://jsbin.com/nokijafepo/1/edit?js,console

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant