Search

Nalezeno "routing": 5

Native JavaScript Routing?


We can update the URL in JavaScript. We’ve got these APIs: // Adds to browser history history.pushState({}, "About Page", "/about"); // Doesn't history.replaceState({}, "About Page", "/about"); JavaScript is also capable of replacing any content in the DOM....

Creating Dynamic Routes in a Nuxt Application


In this post, we’ll be using an ecommerce store demo I built and deployed to Netlify to show how we can make dynamic routes for incoming data. It’s a fairly common use-case: you get data from an API, and you either don’t know exactly what that data might be, there’s a lot of it, or it might change....

Storing and Using the Last Known Route in Vue


There are situations where keeping a reference to the last route a user visited can come in handy. For example, let’s say we’re working with a multi-step form and the user proceeds from one step to the next. It would be ideal to have the route of that previous step in hand so we know where the user...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace