Angular2 - passing ngFor item into a pipe as a parameter?
问题 Im trying to pass an ngFor item into a pipe as a paramter but get an error: Exception: Call to Node module failed with error: Error: Template parse errors: TypeError: Cannot read property 'toUpperCase' of undefined ("{{name}} ng-container [ERROR ->]*ngFor="let rating of ratings | groupFilter:{{name}} " This is the html: <tr *ngFor="let name of measureNames"> <td>{{name}}</td> <td><input class="form-control"></td> <ng-container *ngFor="let rating of ratings | groupFilter:{{name}} "> <ng