Message from JavaScript discussions

July 2017

— Replace event.target with document ?

— 

Uncaught TypeError: Cannot set property 'textContent' of null 🤔
replace event.target with document.getElementByClassName?

— document.querySelector('ons-toolbar.center').textContent = el.nama;

— Well, no error, but the object isnt change.

— 🤔

— Or maybe im wrongly declare the element target?

— You are

— That should be with a space before .center

— "ons-toolbar div.center"

— Hmm, i wrote it as div.center but it still doesnt work too...
🤔

— Https://onsen.io/v2/api/js/ons-navigator.html
this is the guide, maybe i am got it wrong from their guide ? 😅

Message permanent page

— Looool, i just realised, something fishy