o the value is at this time set to <code>undefined</code>.</p>
</li>
</ul>
<pre><code class="lang-js">function linkingFn(scope, elm, attrs, ctrl) {
  // get the attribute value
  console.log(attrs.ngModel);

  // change the attribute
  attrs.$set(&#39;ngModel&#39;, &#39;new value&#39;);

  // observe changes to interpolated attribute
  attrs.$observe(&#39;ngModel&#39;, function(value) {
    console.log(&#39;ngModel has changed value to &#39; + value);
  });
}
</code></pre>
<h2 id="example">Example</h2>
<div