Skip to content

Commit

Permalink
fix(angular): routerLink uses <a>
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed May 8, 2018
1 parent 0f8477d commit 526c9a8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions angular/src/directives/navigation/href-delegate.ts
Expand Up @@ -6,6 +6,11 @@ import { Router } from '@angular/router';
})
export class HrefDelegate {

@Input()
set routerLink(_: any) {
this.elementRef.nativeElement.href = '#';
}

@Input()
set href(value: string) {
this.elementRef.nativeElement.href = value;
Expand Down

0 comments on commit 526c9a8

Please sign in to comment.