Get reference to element in method in Vue.js : <p>How can I get reference to the element that fired the method in Vue.js?
I have HTML like this:</p>

<pre><code> &lt;input type="text" v-model="dataField" v-bind:class="dataFieldClass" /&gt;
</code></pre>

<p>And in my Vue.js viewmodel I have a method:</p>

<pre><code>dataFieldClass: function () {
    // Here I need the element and get its ID
    // Pseudo code
    var elementId = $element.id;
}
</code></pre>

<p>I know that it's possible to get the element from event (v-on:click), but this is not an event, it's a simple method returning CSS class for the element according to few conditions of the viewmodel. It should be computable as well, but the problem is the same.</p>
