From 72c13eea5dbbd9b3e6552190ddc247a0890002d5 Mon Sep 17 00:00:00 2001 From: Eduardo San Martin Morote Date: Fri, 5 Jul 2019 15:35:42 +0200 Subject: [PATCH] chore: testing watchers --- explorations/html5.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() -- 2.39.5