I have this code working in Chrome, but not in Iphone Safari.
self.$el[0].childNodes[1].childNodes[1].childNodes[3].textContent = this.$route.query.name + ' (' + this.$route.query.ctr +')' ;
How can I change navbar title for div class=“title”
Thanks.
Well, I can do it old way
$(’.title’).text(this.$route.query.name + ’ (’ + this.$route.query.ctr +’)’);
The correct way will be:
var navbarInnerEl = app.navbar.getElByPage(self.$el);
$(navbarInnerEl).find('.title').text('...');
1 Like
thanks. I add . to the class name.
John
5
Hi,
how about subnavbar?
I am looking for a way to get the $subnavbar from a component obj. (using v5)
thanks
John
6
After a night of sleep, I realise
navbar = app.navbar.getElByPage(self.$el);
$(navbar).find(".subnavbar");