Code :- In the above code, I want to stop listening for the scroll event with onScroll method when my if block in onScroll method becomes true. But, still, the onScroll method gets called whenever I scroll even though when I tried to remove the eventListener. I even created a watcher to remove the eventListener, yet the method keeps on
I am testing a directive that is adding to divs, these are implementing innerHTML, the directive is in charge of highlingthing with a click on the div (changing the color), but I want to change when the component is updating the content in the innerHTL as well, the problem is that the ngOnChanges hook is not aware of any changes.
I have a function that will allow me to set a buttons text and onclick property Both are set as text params Here is the function: here is what I call The button text is properly assigned but the text that I want to execute is not assigned in the onclick property. It works if I directly type in some