Closed
Description
When using minified bundles with SystemJS, and a simple snippet like this
<template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>
Will throw
TypeError: this.directive_0_0.ngDoCheck is not a function
This is only reproducible with minified bundles, non-minified work correctly.
As an example check this plnkr (took it from #6304 (comment)). To reproduce switch between minified and unminified bundles.
This is also reproducible with Webpack using this line in the config
plugins : [
new webpack.optimize.UglifyJsPlugin()
],
Am I missing something?