Angular 2 - Forms : Get div element value
<p>I want to get the value of a <code>div</code> located inside a <code>&lt;form&gt;</code> the content of that <code>div</code> can be changed by the user as that <code>div</code> 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).</p>

<p>What I want to do is to get the value of that div, eg. in JavaScript we are doing something like that:</p>

<pre><code>document.getElementById("idOfDiv").innerHTML
</code></pre>

<p>I want to do the exact same thing in <strong>Angular 2</strong></p>

<p>P.S. My Angular 2 project is based on <strong>JS</strong></p>

<p>Currently I have:</p>

<pre><code>&lt;div #nbOfItems&gt;{{ (items()) }}&lt;/div&gt;
</code></pre>