I'm working with angular 7. I'm trying to retrieve the change of a variable value of the template component. Indeed, I declare a variable of boolean type into my .ts file and into the template file its value change after clicking on a button. I want to display this new value on the console. How can I do it please.
I tried double way binding but I'm not working with 2 components but only one and I saw that il works with @Input and @Output so I think it's not possible for me.
<pre>{{value | json}}<pre>which is sometimes easier then trying to log it.