This page was loaded and compiled with Template7 template engine.

Route Context

Context can be passed in route options

  • foo: {{foo}}
Extended Context

Template7 page context is extended with some additional variables.

$route

Contains properties of the current route:

  • $route.url: {{$route.url}}
  • $route.path: {{$route.path}}
  • $route.params: {{js 'return JSON.stringify(this.$route.params)'}}
  • $route.hash: {{$route.hash}}
  • $route.query: {{js 'return JSON.stringify(this.$route.query)'}}
  • $route.context: {{js 'return JSON.stringify(this.$route.context)'}}

$root

Root app data:

  • $root.user.firstName: {{$root.user.firstName}}
  • $root.user.lastName: {{$root.user.lastName}}

$theme

Currently active theme:

  • $theme.ios: {{$theme.ios}}
  • $theme.md: {{$theme.md}}