I want to get the value of a div
located inside a <form>
the content of that div
can be changed by the user as that div
outputs a particular value (number of items in a shopping cart, the user can add, reduce the quantity of a certain item in that cart).
What I want to do is to get the value of that div, eg. in JavaScript we are doing something like that:
document.getElementById("idOfDiv").innerHTML
I want to do the exact same thing in Angular 2
P.S. My Angular 2 project is based on JS
Currently I have:
<div #nbOfItems>{{ (items()) }}</div>