ontain interpolation (e.g. <code>src=&quot;{{bar}}&quot;</code>). Not only is this very efficient but it&#39;s also
the only way to easily get the actual value because during the linking phase the interpolation
hasn&#39;t been evaluated yet and so 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