<p dir="auto"><strong>Steps to reproduce and a minimal demo of the problem</strong><br>
See: <a href="http://plnkr.co/edit/2ecdHTFEZiG3Q4ig8xga?p=preview" rel="nofollow">http://plnkr.co/edit/2ecdHTFEZiG3Q4ig8xga?p=preview</a><br>
Open dev tools console to see the following error:<br>
<code class="notranslate">EXCEPTION: No provider for e! (e -&gt; e)</code></p>
<p dir="auto">If you remove the [ngClass] or the *ngIf it will work fine. Also, if you change from the .min.js version to the .js or .dev.js version it will work.</p>
<p dir="auto"><strong>Current behavior</strong><br>
Throws <code class="notranslate">EXCEPTION: No provider for e! (e -&gt; e)</code></p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
To work as it does with the full bundled version.</p>
<p dir="auto"><strong>Other information</strong></p>
<p dir="auto">When using minified bundles with SystemJS, and a simple snippet like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        &lt;template ngFor #item [ngForOf]=&quot;items&quot; #i=&quot;index&quot;&gt;
          &lt;li&gt;{{i}}&lt;/li&gt;
          &lt;li *ngIf=&quot;i % 2 == 0&quot;&gt;number is even&lt;/li&gt;
        &lt;/template&gt;"><pre class="notranslate"><code class="notranslate">        &lt;template ngFor #item [ngForOf]="items" #i="index"&gt;
          &lt;li&gt;{{i}}&lt;/li&gt;
          &lt;li *ngIf="i % 2 == 0"&gt;number is even&lt;/li&gt;
        &lt;/template&gt;
</code></pre></div>
<p dir="auto">Will throw</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: this.directive_0_0.ngDoCheck is not a function"><pre class="notranslate"><code class="notranslate">TypeError: this.directive_0_0.ngDoCheck is not a function
</code></pre></div>
<p dir="auto">This is only reproducible with minified bundles, non-minified work correctly.</p>
<p dir="auto">As an example check this <a href="http://plnkr.co/edit/ZWiQqw3nR8xS1MRrpTry?p=preview" rel="nofollow">plnkr</a> (took it from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125250401" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/6304" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/6304/hovercard?comment_id=170200989&amp;comment_type=issue_comment" href="https://github.com/angular/angular/issues/6304#issuecomment-170200989">#6304 (comment)</a>). To reproduce switch between minified and unminified bundles.</p>
<p dir="auto">This is also reproducible with Webpack using this line in the config</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="    plugins : [
        new webpack.optimize.UglifyJsPlugin()
    ],"><pre class="notranslate"><code class="notranslate">    plugins : [
        new webpack.optimize.UglifyJsPlugin()
    ],
</code></pre></div>
<p dir="auto">Am I missing something?</p>