Currently, I am utilizing the file toggle.js within the Urban theme.
In the HTML chatbox, using the img, the file toggle.js is hardcoded and is functioning properly. However, when implementing code in Angular 6, the toggle.js is not functioning as expected.
Description: The intended functionality is for the chatbox to be displayed upon clicking a username.
This is the code snippet (I have attempted hardcoding as well as leveraging Angular 6):
<a *ngFor="let item of data;" href="javascript:;"> => not working
<span class="status-online"></span>
<span>{{item.Username}}</span>
</a>
<a href="javascript:;"> => hardcode working
<span class="status-online"></span>
<span>Peter</span>
</a>
I would greatly appreciate any assistance provided. Thank you.