mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
fix(angular): routerLink uses <a>
This commit is contained in:
@ -6,6 +6,11 @@ import { Router } from '@angular/router';
|
|||||||
})
|
})
|
||||||
export class HrefDelegate {
|
export class HrefDelegate {
|
||||||
|
|
||||||
|
@Input()
|
||||||
|
set routerLink(_: any) {
|
||||||
|
this.elementRef.nativeElement.href = '#';
|
||||||
|
}
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
set href(value: string) {
|
set href(value: string) {
|
||||||
this.elementRef.nativeElement.href = value;
|
this.elementRef.nativeElement.href = value;
|
||||||
|
Reference in New Issue
Block a user