Hi i have a problem with displaying object value in html, this code is example of w3.js but i want to improve this function like angular