hi, 

i want to do a extensions for a website to automate a usecase. the website 
is using AngularJS. 

I identified the div I want to click on using javascript in a content 
script:

<div class="fullscreen ng-scope" ng-click="changeFullScreen()" 
tooltip="Full screen" tooltip-append-to-body="true" 
horizontal-offset="-35"></div>

document.querySelector("div.fullscreen.ng-scope") seems to find the 
HTMLDIV, but   .click()  on it does not work. (this works for other parts 
the UI)

i started reading on AngularJS (still a newbie here ;-) and found about 
scopes.

now I try 
angular.element( $(".fullscreen") ).scope().changeFullScreen();

but fail with 
 Uncaught ReferenceError: angular is not defined


I tried to add angular.js to the manifest.json content_scripts array, but 
that gives me

Uncaught Error: [$injector:modulerr] Failed to instantiate module imp due 
to:
Error: [$injector:nomod] Module 'imp' is not available! You either 
misspelled the module name or forgot to load it. If registering a module 
ensure that you specify the dependencies as the second argument.

'imp' seems the be a module of the website.

How can I solve this ?


regards
roland

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to