Created
January 30, 2021 13:27
-
-
Save fadamakis/bbdc21f1441fb69036a2ce0578af962b to your computer and use it in GitHub Desktop.
Cheap Static Components with v-once
This file contains 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.component('terms-of-service', { | |
template: ` | |
<div v-once> | |
<h1>Terms of Service</h1> | |
... a lot of static content ... | |
</div> | |
` | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment