I am using the sidemenu template from Ionic, which I changed a bit. In browse.html I have added the ion-tabs and ion-tab interface, this is working perfectly. I have given the ion-tab an ID “today”, like this:
The function is being called, but the title doesn’t change.
I’ve also tried this:
document.getElementById(‘today’).setAttribute(‘title’, ‘test 1’);
But no results. I’ve also tried this:
var n = document.getElementById(‘today’).title;
But n stays empty.
I can’t figure out what is the problem here. Can anybody help me with this?