commit b83a5496533d50edb2e1ff0f804c7b2acc22c92b parent c56bda61ec777cf97e5fc8696a00d2a2f20022d4 Author: MTRNord <mtrnord1@gmail.com> Date: Wed, 21 Mar 2018 19:54:40 +0100 Fix if logic Diffstat:
| M | src/app/app.component.ts | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/app/app.component.ts b/src/app/app.component.ts @@ -17,7 +17,7 @@ export class AppComponent { } checkCurrent(path = '/'): string { - const active = (this.currentUrl === path) ? null : 'active'; + const active = (this.currentUrl === path) ? 'active' : null; console.log('Route: ' + path + ' Current: ' + this.currentUrl + ' Active?: ' + active); return active; }