Skip to content
Snippets Groups Projects
Commit 10ee1f6f authored by Anders Høvik's avatar Anders Høvik
Browse files

Added routing to home

parent 1bfd7020
No related branches found
No related tags found
1 merge request!7Feature/menu
<template> <template>
<nav class="navbar navbar-expand-lg bg-success"> <nav class="navbar navbar-expand-lg bg-success">
<div class="container-fluid" > <div class="container-fluid" >
<a class="navbar-brand" href="#"> <a class="navbar-brand" href="/" @click="toHome">
<img src="/src/assets/Sparesti-logo.png" alt="Sparesti-logo" width="60"> <img src="/src/assets/Sparesti-logo.png" alt="Sparesti-logo" width="60">
</a> </a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" <button class="navbar-toggler" type="button" data-bs-toggle="collapse"
...@@ -52,6 +52,10 @@ import {useRouter} from "vue-router"; ...@@ -52,6 +52,10 @@ import {useRouter} from "vue-router";
const router = useRouter(); const router = useRouter();
function toHome(){
router.push('/')
}
function toSavingGoals(){ function toSavingGoals(){
router.push('/news') router.push('/news')
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment