Skip to content

Instantly share code, notes, and snippets.

@davidpelaez
Created November 1, 2016 15:17
Show Gist options
  • Save davidpelaez/f1bda188e5569dbfd5645c401fa30d4f to your computer and use it in GitHub Desktop.
Save davidpelaez/f1bda188e5569dbfd5645c401fa30d4f to your computer and use it in GitHub Desktop.
<head>
<script id='capitalizer-template' type='text/x-template'>
<h1> {{msg | capitalizer}}
</script>
</head>
<body>
<div id='app'>
<capitalizer></capitalizer>
</div>
<script>
Vue.component('capitalizer',
{
template: '#capitalizer-template',
methos:....
})
new Vue(el: '#app')
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment