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>
<nav class="navbar navbar-expand-lg bg-success">
<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">
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
......@@ -52,6 +52,10 @@ import {useRouter} from "vue-router";
const router = useRouter();
function toHome(){
router.push('/')
}
function toSavingGoals(){
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