Change navbar title in IPHONE

I have this code working in Chrome, but not in Iphone Safari.

    self.$el[0].childNodes[1].childNodes[1].childNodes[3].textContent = this.$ + ' (' + this.$route.query.ctr +')' ;

How can I change navbar title for div class=“title”


Well, I can do it old way
$(’.title’).text(this.$ + ’ (’ + this.$route.query.ctr +’)’);

The correct way will be:

var navbarInnerEl = app.navbar.getElByPage(self.$el);
1 Like

thanks. I add . to the class name.


how about subnavbar?

I am looking for a way to get the $subnavbar from a component obj. (using v5)


After a night of sleep, I realise

navbar = app.navbar.getElByPage(self.$el);