An Interest In:
Web News this Week
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
February 3, 2021 05:50 pm GMT
Original Link: https://dev.to/venatus/embed-dev-to-articles-in-your-vue-app-6nl
Embed dev.to articles in your Vue app
I was looking for a way to show posts from dev.to on my website and I found this post by comscience who made exactly that in React, so I made a Vue version with Vuetify.
Here you go:
You can also install it via npm:npm i dev-to-embed-vue
And then import the component in your app:
import DevToEmbed from 'dev-to-embed-vue/src/DevToEmbed'
Enter fullscreen mode Exit fullscreen mode
And use it in your template:
<DevToEmbed userName="venatus"/>
Enter fullscreen mode Exit fullscreen mode
Source code:
dev_to_embed
Project setup
npm install
Compiles and hot-reloads for development
npm run serve
Compiles and minifies for production
npm run build
Lints and fixes files
npm run lint
Customize configuration
Original Link: https://dev.to/venatus/embed-dev-to-articles-in-your-vue-app-6nl
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To