0👍
Vue will attach to the DIV with id app
. So your {{foo}}
will be out of range for Vue to change it.
You should look into Single File Components, that way you’ll be able to wrap your whole HTML inside Vue.
- [Vuejs]-Vue, content from routerview hidden
- [Vuejs]-Conditionally render Vue Elements or Higher Order Components?
Source:stackexchange.com