Skip to content

Snippets of more obscure Vue.js experiences @ POLITICO, captured in quick code demos & explanations

License

Notifications You must be signed in to change notification settings

politico/vues-clues

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Vue's Clues

Snippets of more obscure Vue.js experiences @ POLITICO, captured in quick code demos & explanations

Note! Only available in the full build.
Sometimes you may end up needing to compile a template on the fly. For example, you get HTML code from your back-end server with inner links and you don't want your site to reload clicking on that links. Normally, you would have router-link component. But here it's just tag link "a"

<a href="/some/inner/path">SomeLink</a>

Using v-html does not allow you to do this. In this case, you need to change links to router-link components and compile HTML string

About

Snippets of more obscure Vue.js experiences @ POLITICO, captured in quick code demos & explanations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published