November 2017
Beginner to intermediate
398 pages
8h 42m
English
Currently, if you enter an invalid URL into the app, you are greeted with a boring blank page. This is the default behavior of vue-router, but it can thankfully be changed! We will now customize the "not found" page of our app!
<template> <main class="not-found"> <h1>This page can't be found</h1> <p class="more-info"> Sorry, but we can't find the page you're looking for.<br> It might have been moved or deleted.<br> Check your spelling or click below to return to the homepage. </p> <div class="actions"> <router-link tag="button" :to="{name: 'home'}">Return to home</router-link> </div> </main> </template> <style lang="stylus" scoped> .more-info {Read now
Unlock full access