-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Cdk stepper example refactor #20383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cdk stepper example refactor #20383
Conversation
…impler for this PR.
…le mode in a combobox.
…e consistent with the other example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
<div [style.display]="selected ? 'block' : 'none'"> | ||
<ng-container [ngTemplateOutlet]="selected.content"></ng-container> | ||
</div> | ||
<div [ngTemplateOutlet]="selected ? selected.content : null"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excuse me, but could we use ng-container
here so that no elements are rendered when it's not selected?
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Old PR I forgot to get around to submitting earlier this summer. Just refactors the original cdk stepper example a bit taking into account the comments I got on my cdk linear stepper example.