Skip to content

Instantly share code, notes, and snippets.

@bengry
Last active January 20, 2018 17:29
Show Gist options
  • Save bengry/1a6260bc0480057512ef4de55b7ea073 to your computer and use it in GitHub Desktop.
Save bengry/1a6260bc0480057512ef4de55b7ea073 to your computer and use it in GitHub Desktop.
// Uppercase.vue
<template>
<div style="text-transform: uppercase">
<slot></slot> // how can we modify the actual rendered slot to make it uppercase?
</div>
</template>
// App.vue
<app>
<Uppercase>
hello world
</Uppercase>
</app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment