Access data in script
So I've figured it out. I was able to access this.$page variable in the created() lifecycle hook of vue and not in the data object itself.
The code is looking like this. I first define the variables with initial value of null in the data object: