AngularJS trigger events that bubble the DOM

I know that for jQuery in AngularJS there is a trigger Handler (), but there is no trigger () equivalent to jQuery for AngularJS. Is this due to some kind of ideological difference, or just to make jQLite as thin as possible?

Also, what is the best way to implement jQuery trigger ()? I tried this link, but it was hard to understand it. I would appreciate if someone would help me emulate .trigger () jQuery using the vanilla JavascriptS way of AngularJS? Thank!

+4
source share

Source: https://habr.com/ru/post/1547737/


All Articles