https://codepen.io/pen/?&editors=101 here we go @emccorson
J
Save
Saving
Jordan.Bettridge
@Jordan.Bettridge
0
Reputation
3
Posts
78
Profile views
0
Followers
0
Following
Posts made by Jordan.Bettridge
-
Ons-tabbar how to use?
Hi guys,
I am trying to use ons-tabbat on SOME pages in my app, for some reason if I place ons-tabbar in the templates where I want it, then it copies hundres of times like so -
How do I put pushPage in a if statement
Hi guys,
So I want to make an if statement to see if a user is logged in. If they arent I want to push page a template IDd as “login.html” for some reason I can put it on a button but not in an if statement?
I have tried:if (user == 1){ document.querySelector('#navigator').bringPageTop('login.html', { animation: 'slide' }); }
Also
const loadPage = (page) => { document.querySelector('#navigator').bringPageTop(page, { animation: 'slide' }); }; if(user === 1){ loadPage('login.html'); }
and a few others