0
I have a button in a table that has the following code
<td> <button class="btn btn-primary float-right" onclick="addCart()"><i class="fa fa-shopping-cart"></i> Adicionar ao Carrinho </button> </td>
But it keeps returning the error "Uncaught Referenceerror: addCart is not defined at Htmlbuttonelement.onclick" And that function exists in the code, I don’t know what that problem might be.
But is using Angular???
– LeAndrade
Would not be
ng-click
?? But put the function signature as well as the element<script>
which she is inserted.– Augusto Vasques
I tried ng-click tbm unsuccessfully
– Gustavo Oliveira