update omi-router README KR

This commit is contained in:
LeeHyungGeun 2018-11-06 23:05:24 +11:00
parent 36c77c6a31
commit 38ff037e5a
1 changed files with 9 additions and 0 deletions

View File

@ -63,6 +63,15 @@ define('my-app', class extends WeElement {
route('*', function () {
console.log('not found')
})
route.before = (evt) => {
console.log('before')
//prevent route when return false
//return false
}
route.after = (evt) => {
console.log('after')
}
}
onClick = () => {