(anyone is welcome to rephrase my question, I am not sure how to word it)
Say I created an Angular component, something like this:
<app-my-test></app-my-test>
How can I allow the user to set options on and off by just typing the option into the component, something like this:
<app-my-test booleanCheck></app-my-test>
Then in my .ts file, I would like booleanCheck to be true if they added it, and false if they didn't add it. Below is a blitz to play around with. The goal is to get the console.log to log true if booleanCheck was added, and false if it was not added.
https://stackblitz.com/edit/angular-xr3p84?file=src%2Fapp%2Fapp.module.ts
I do NOT want this as an answer please:
<app-my-test booleanCheck="true"></app-my-test>
<app-my-test [booleanCheck]="true"></app-my-test>