<p dir="auto">The code below is taken from the examples and works correctly with angular Dart version 2.0.0-alpha.27  (after updating the injector).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@View(template: '''
&lt;p&gt;My name: {{ myName }}&lt;/p&gt;
&lt;p&gt;Friends:&lt;/p&gt;
&lt;ul&gt;
   &lt;li *ng-for=&quot;#name of friendNames&quot;&gt;
      {{ name }}
   &lt;/li&gt;
&lt;/ul&gt;
&lt;p *ng-if=&quot;friendNames.length &gt; 3&quot;&gt;You have many friends!&lt;/p&gt;
''',
directives: const [NgFor,NgIf]
)"><pre class="notranslate"><code class="notranslate">@View(template: '''
&lt;p&gt;My name: {{ myName }}&lt;/p&gt;
&lt;p&gt;Friends:&lt;/p&gt;
&lt;ul&gt;
   &lt;li *ng-for="#name of friendNames"&gt;
      {{ name }}
   &lt;/li&gt;
&lt;/ul&gt;
&lt;p *ng-if="friendNames.length &gt; 3"&gt;You have many friends!&lt;/p&gt;
''',
directives: const [NgFor,NgIf]
)
</code></pre></div>
<p dir="auto">Using angular2: '&gt;= 2.0.0-alpha.28' or '2.0.0-alpha.29' the code fails at NgFor, NgIf with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unsupported directive record"><pre class="notranslate"><code class="notranslate">Unsupported directive record
</code></pre></div>
<p dir="auto">Using angular2: '2.0.0-alpha.30' the code fails with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unsupported directive record in [friendNames in &lt;li *ng-for=&quot;#name of friendNames&quot;&gt;]"><pre class="notranslate"><code class="notranslate">Unsupported directive record in [friendNames in &lt;li *ng-for="#name of friendNames"&gt;]
</code></pre></div>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="94401827" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/2981" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/2981/hovercard" href="https://github.com/angular/angular/pull/2981">#2981</a> provides a test which fails. <a href="https://gist.github.com/jakemac53/675fdedad5ce469d292f">https://gist.github.com/jakemac53/675fdedad5ce469d292f</a> is an simple example which will fail under the transformer.</p>