I have my login screen in app.f7.html with all methods to log in with Facebook there too and after I logged in I want to have the user data and all json arrays available at the the home.f7.html page but it seems that are not there when I finished logged in…
how can I pass the variables from app.f7.html to home.f7.html?
I have for instance this code inside app.f7.html
<template>
<div id="app">
<!-- Your main view, should have "view-main" class -->
<div class="view view-main view-init safe-areas" data-url="/"></div>
<!-- Login Screen -->
<div class="login-screen" id="my-login-screen">login code here</div>
...
</template>
<script>
export default {
data() {
return {
loggedIn: false,
user: null,
};
},
methods: {
SignInWithFacebook: function () {
.....
self.$setState({
loggedIn: true,
user: {
name: 'test'
}
});
.....
at home.f7.html the user is still null and loggedIn still false…
{{#if user}}
{{user.name}}
{{else}}
no info
{{/if}}
any tips how to pass all variables after logged in from app.f7.html to home.f7.html?
thanks