Passing component 'text' to variable

Hi there,

I have a button called 'ButMon' and I want to set a variable to the text of that button. Can you please explain how to do this? It seems very simple, but I just cannot do it.

Ionic app, not JQuery.

1 person has
this question