Answer the question
In order to leave comments, you need to log in
How does the ngIf directive work?
I have several DOM elements:
<myComponent *myIfDirective="'xs'">1</myComponent>
<myComponent *myIfDirective="'lg'">2</myComponent>
Answer the question
In order to leave comments, you need to log in
Full solution to your problem https://github.com/ang5-examples/ui-kit/tree/maste...
<test-component *ifViewportSize="'small'" [value]="1"></test-component>
<test-component *ifViewportSize="'medium'" [value]="2"></test-component>
<test-component *ifViewportSize="'large'" [value]="3"></test-component>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question