mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 11:41:20 +08:00
update to use host
This commit is contained in:
@ -10,14 +10,12 @@ import {NavController} from './nav-controller';
|
||||
|
||||
@Directive({
|
||||
selector: '[nav-push]',
|
||||
hostListeners: {
|
||||
'^click': 'onClick($event)'
|
||||
},
|
||||
properties: [
|
||||
'navPush',
|
||||
'pushData'
|
||||
],
|
||||
hostAttributes: {
|
||||
host: {
|
||||
'(^click)': 'onClick($event)',
|
||||
'role': 'link'
|
||||
}
|
||||
})
|
||||
@ -33,10 +31,8 @@ export class NavPush {
|
||||
|
||||
@Directive({
|
||||
selector: '[nav-pop]',
|
||||
hostListeners: {
|
||||
'^click': 'onClick($event)'
|
||||
},
|
||||
hostAttributes: {
|
||||
host: {
|
||||
'(^click)': 'onClick($event)',
|
||||
'role': 'link'
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user