update to use host

This commit is contained in:
Adam Bradley
2015-06-22 13:05:47 -05:00
parent 43042ed999
commit e81a78e9d6
13 changed files with 46 additions and 59 deletions

View File

@ -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'
}
})