0

I have angular and non-angular apps on same page. I emit an event in angular app and want to listen to it in a non-angular app. Can someone please give some suggestions on how can I achieve this?

I have successfully implemented an event emitter that was able to trigger and listen to events between parent and child components of angular but it needs inputs for listening to the emitter event on non-angular app.

Deadpool_er
  • 215
  • 4
  • 20

1 Answers1

0

Check out this answer it has some nice suggestions here

I would suggest this approach using javascript

var ngScope = angular.element('[ng-controller]').scope(); 

Checkout the answer by @Moshe Shaham, it's a great answer

Hargun Singh
  • 544
  • 7
  • 19