Skip to content

Instantly share code, notes, and snippets.

@stakahashi
Last active August 29, 2015 14:17
Show Gist options
  • Save stakahashi/9b9e3f3e4629e9a2ea7c to your computer and use it in GitHub Desktop.
Save stakahashi/9b9e3f3e4629e9a2ea7c to your computer and use it in GitHub Desktop.
Laravel(blade template)でvue.jsのmustache記法を使用する ref: http://qiita.com/shunsuke-takahashi/items/8f697d1bbf6ba3902ca2
@{{ This will not be processed by Blade }}
Vue.config.delimiters = ['(%', '%)'];
var vm = new Vue({
el: '#myApp',
data: {
username: 'hogehoge'
}
});
{
// print stack trace for warnings?
debug: true,
// attribute prefix for directives
prefix: 'v-',
// interpolation delimiters
// for HTML interpolations, add
// 1 extra outer-most character.
delimiters: ['{{', '}}'],
// suppress warnings?
silent: false,
// interpolate mustache bindings?
interpolate: true,
// use async updates (for directives & watchers)?
async: true,
// allow altering observed Array's prototype chain?
proto: true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment