خرید بک لینک

Vote count: 0

I have a div element in my HTML like so

<div (click) = onPaginationClick()>next</div>

My question is : How to pass a string to the onPaginationlick() function ? when i try to pass it like this :

<div (click)=onPaginationClick("myString")>next</div>

I have a parse template error.

Enyone can help ?

asked 49 secs ago

1 Answer

Vote count: 0

You need to wrap the whole expression in quotes if it itself contains quotes:

<div (click)="onPaginationClick('myString')">next</div>

answered just now

برچسب: how to pass a drug test,how to password protect a folder,how to pass a urine drug test,how to password protect a pdf,how to pass out,how to password protect excel,how to pass time,how to pass a kidney stone,how to pass a , test,how to pass a swab test, نویسنده: استخدام کار تاريخ: سه شنبه 19 مرداد 1395 ساعت: 18:42

صفحه بندی