Skip to content

Instantly share code, notes, and snippets.

@josephjaniga
Created September 26, 2016 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephjaniga/078e45c62abcb1ac3ec8a2267313bca6 to your computer and use it in GitHub Desktop.
Save josephjaniga/078e45c62abcb1ac3ec8a2267313bca6 to your computer and use it in GitHub Desktop.
window.vueData = {
primary: {
show: true,
message: '',
classes: [],
language: 'en'
}
};
this.vue = new Vue({
el: '#app',
data: window.vueData
});
<div class="container" id="app">
<div class="row primary">
<div class="col-xs-12">
<h1 v-bind:class="primary.classes.concat(['title'])"
lang="{{ primary.language || 'en' }}"
v-show="primary.show">
{{ primary.message }}
</h1>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment