Below is the html, to scan the bar-coder and the same will assign to barCodeNumber variable, onChange() function will call once the bar-coder scanned,
Question:- I want to hide the div from UI, but the function should work, even div is not visible.
I tried using "visibility: hidden" in scss style class, but the function is not working.
<div class="mt-5">
<div class=" flex flex-row align-content-center justify-content-between row-gap-6 card-container">
<form>
<input type="text" [ngModelOptions]="{standalone: true}" [(ngModel)]="barCodeNumber"
autofocus="true" placeholder="Enter/Scan RFID" (change)="mappingFunction($event)">
</form>
</div>
</div>
below is .ts file:
mappingFunction(event){
console.log('Event print', event);
}