[Vuejs]-How do you use named router-views with Typescript?

0👍

I finally figured it out… I had to take a look at the router.d.ts file to see what type they were looking for. If you want to use named router-views you have to add an s to component in your code because the file checks for this format:

components?: Dictionary<Component>

type Dictionary<T> = {
    [key: string]: T;
}

Leave a comment