mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 10:41:13 +08:00
fix(angular): routerLink uses <a>
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user