Home > other >  Angular value on onclick
Angular value on onclick

Time:12-02

I am new to angular and I would like to know how I could do this correctly

<button id="btn" onclick="{{team.p_slot_01}}")>App</button>

I have tried several things but nothing worked

CodePudding user response:

If you are passing a string through a click, I will recommend making a function and then triggering it here click="functionName("")" and then creating that function in the component. If you can further explain the scenario, I can give more suggestions

  • Related