<p dir="auto">It would be very useful to read a components static attributes (not bindings). This is probably a prerequisite for to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57540327" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/633" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/633/hovercard" href="https://github.com/angular/angular/issues/633">#633</a>. There are many use-cases for this.</p>
<h4 dir="auto">Example use case: imitating native input api</h4>
<p dir="auto">Standard radio buttons are put into one single-input-can-be-checked group with the name attribute:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;label&gt;
  &lt;input type=&quot;radio&quot; name=&quot;instrument&quot;&gt;
  Guitar
&lt;/label&gt;
&lt;!-- some arbitrary html --&gt;
&lt;label&gt;
  &lt;input type=&quot;radio&quot; name=&quot;instrument&quot;&gt;
  Trombone
&lt;/label&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span>
  <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">instrument</span>"<span class="pl-kos">&gt;</span>
  Guitar
<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span>
<span class="pl-c">&lt;!-- some arbitrary html --&gt;</span>
<span class="pl-kos">&lt;</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span>
  <span class="pl-kos">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">instrument</span>"<span class="pl-kos">&gt;</span>
  Trombone
<span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span></pre></div>
<p dir="auto">If a component author wants to support the same api on a custom radio button, the author needs to be able to read the name attribute. There's usually not a need, though, to create a binding on the property.</p>
<p dir="auto">Lines 1 and 2 should read</p>
<p dir="auto"><code class="notranslate">var AppComponent = ng.Component({</code></p>
<p dir="auto">instead of</p>
<p dir="auto"><code class="notranslate">var AppComponent = ng ng.Component({</code></p>
<p dir="auto">Running the former in Chrome 46.0.2490.71 gave me a <code class="notranslate">Error during instantiation of Token Promise&lt;ComponentRef&gt;!.</code> exception, the original exception being <code class="notranslate">No Directive annotation found on [object Object]</code></p>