angulardart / angular_components

The official Material Design components for AngularDart. Used at Google in production apps.

Home Page:https://pub.dev/packages/angular_components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trying to hide a step I get the warning: "The content does not match any transclusion selectors of the surrounding component"

giorgiofran opened this issue · comments

I'm trying to hide a step based on a certain condition: I'm doing something like:


<material-stepper legalJumps="none"
                          orientation="vertical"
                          [noText]="cancelString">


            <template step [name]="functionName" (continue)="onContinueStep1($event)"
                      [canContinue]="valid" [cancelHidden]="false">
                <div>

                </div>
            </template>
            <template step [name]="step2Label" (continue)="onContinueStep2($event)">
                <div>
                </div>
            </template>
            <template *ngIf="showStep3">
              <template step [name]="step3Label" (continue)="onClose()">
                <div>

                </div>
              </template>
            </template>
 </material-stepper>

But, If I add the template "<template *ngIf="showStep3">", I get the warning: The content does not match any transclusion selectors of the surrounding component ..

Any hint?

you don't use the * syntax for template: <template [ngIf]="showStep3">