From 5e165b56c7a61d28fdb279ed8da07288e6dbb7af Mon Sep 17 00:00:00 2001 From: denlysenko Date: Wed, 19 Aug 2020 18:00:22 +0300 Subject: [PATCH 1/2] fix(router): link active directive (#2227) --- nativescript-angular/router/ns-router-link-active.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nativescript-angular/router/ns-router-link-active.ts b/nativescript-angular/router/ns-router-link-active.ts index 75c1fe855..e9a2fa504 100644 --- a/nativescript-angular/router/ns-router-link-active.ts +++ b/nativescript-angular/router/ns-router-link-active.ts @@ -106,9 +106,9 @@ export class NSRouterLinkActive implements OnChanges, OnDestroy, AfterContentIni const isActiveLinks = this.reduceList(currentUrlTree, this.links); this.classes.forEach((c) => { if (isActiveLinks) { - this.renderer.removeClass(this.element.nativeElement, c); - } else { this.renderer.addClass(this.element.nativeElement, c); + } else { + this.renderer.removeClass(this.element.nativeElement, c); } }); } From 1c7ba3c2bc2f465b1575a6efab66771f7b4cc71e Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Wed, 19 Aug 2020 08:54:54 -0700 Subject: [PATCH 2/2] chore(release): 10.0.2 --- CHANGELOG.md | 4 ++-- nativescript-angular/package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86e189b96..5610f3662 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ -## [10.0.1](https://github.com/NativeScript/nativescript-angular/compare/10.0.0...10.0.1) (2020-08-18) +## [10.0.2](https://github.com/NativeScript/nativescript-angular/compare/10.0.1...10.0.2) (2020-08-19) ### Bug Fixes -* **router:** link active directive ([#2225](https://github.com/NativeScript/nativescript-angular/issues/2225)) ([b2e467f](https://github.com/NativeScript/nativescript-angular/commit/b2e467f7a9901995d4cf344efd25e82850b72cef)) +* **router:** link active directive ([#2227](https://github.com/NativeScript/nativescript-angular/issues/2227)) ([5e165b5](https://github.com/NativeScript/nativescript-angular/commit/5e165b56c7a61d28fdb279ed8da07288e6dbb7af)) diff --git a/nativescript-angular/package.json b/nativescript-angular/package.json index 5ff3c46df..ab4d7f23e 100644 --- a/nativescript-angular/package.json +++ b/nativescript-angular/package.json @@ -1,6 +1,6 @@ { "name": "@nativescript/angular", - "version": "10.0.1", + "version": "10.0.2", "description": "An Angular renderer that lets you build mobile apps with NativeScript.", "homepage": "https://www.nativescript.org/", "bugs": "https://github.com/NativeScript/nativescript-angular/issues",