Answer the question
In order to leave comments, you need to log in
How to add slug to URL?
const app = new Vue({
el: '#app',
data: {
posts: [],
}
axios.get(' http://asdasd/post/{slug} ') // What is the correct way to add a slug to a URL?
.then(response => {
console.log(response);
this.posts = response.data;
})
.catch(function (error) {
console.log(error);
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question