This post is related to: Angular 2 component input without value
I would like to achieve a card component with an Boolean input attribute named scrollable
.
<card>...</card>
without the scrollable attribute results tofalse
in the controller<card [scrollable]>...</card>
with only the scrollable attribute results totrue
I've already tried the accepted solution in the linked post.
Stackblitz: https://stackblitz.com/edit/angular-ivy-ylsxzm?file=src/app/app.component.html
Update
To solve the issue, I just had to remove the square brackets from the Scrollable attribute.
Forked Stackblitz: https://stackblitz.com/edit/angular-ivy-s6d8ag?file=src/app/app.component.html