RaviTeja
RaviTeja

Reputation: 1026

How to make chrome extension to talk with angular on the page

I've a chrome extension which modifies the pages Dom. But the page is in angular so I need to change the scope of the element. How can I do that?

Upvotes: 2

Views: 900

Answers (1)

gkalpak
gkalpak

Reputation: 48211

What you want is to interact with the page's JS context from the content script. There is nothing special about AngularJS in this regard.
In order to be able to interact with the page's JS you need to inject some code into the page.
This can be achieved in a lethora of ways and this answer covers them all in great detail.

Upvotes: 3

Related Questions