Last active
August 29, 2015 14:17
-
-
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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@{{ This will not be processed by Blade }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vue.config.delimiters = ['(%', '%)']; | |
var vm = new Vue({ | |
el: '#myApp', | |
data: { | |
username: 'hogehoge' | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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