Vue.component('profil-card', { template: `
Card image cap
exit_to_app Logout
{{ auth.name }}

{{ auth.type }}


`, data: function () { return { auth: auth, abo: 7, saved: 3, isCardModalActive: false, majorList: { }, }; }, computed: { }, methods: { logout: function() { clearAuthState(); $.ajax({ url: "api/logout", method: "POST" }); router.push('/profil'); } } });