From: Eduardo San Martin Morote Date: Fri, 5 Jul 2019 13:35:42 +0000 (+0200) Subject: chore: testing watchers X-Git-Tag: v4.0.0-alpha.0~311 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72c13eea5dbbd9b3e6552190ddc247a0890002d5;p=thirdparty%2Fvuejs%2Frouter.git chore: testing watchers --- diff --git a/explorations/html5.ts b/explorations/html5.ts index 27894fc4..ece68baa 100644 --- a/explorations/html5.ts +++ b/explorations/html5.ts @@ -160,6 +160,16 @@ window.vm = new Vue({ message: 'hello', shared, }, + + // try out watchers + // watch: { + // '$route.params.id' (id) { + // console.log('id changed', id) + // }, + // '$route.name' (name) { + // console.log('name changed', name) + // } + // } }) run()