in ionic-cli i cannot just do
div.myProperty = “Hello”;
its works in normal html page with ionic script imports of course …
anyone got a solution ?
edit:
x.setAttribute("_name", customer );
works
but
i cannot
customersList.onclick = function (e) {
console.log(e.target._name)
}
the e.target would be one of the ion-items (or just a div) in the list
getAttribute doesnt work on e.target either
edit2:
shit, doesnt work either… i cannot set any attribute … is null … ohh man whyi always have to struggle for hours on such shit
edit3:
and for android it doesnt even build …