annotorious / annotorious-v1

Project has moved to http://github.com/annotorious/annotorious
https://annotorious.com
MIT License
592 stars 142 forks source link

ReferenceError: "anno is not defined" #192

Closed BALAMRGAN closed 6 years ago

BALAMRGAN commented 6 years ago

Hi..

I have added "angular-annotorious.js" and the css file too. But when am running my application am getting the following error

ReferenceError: anno is not defined at getAnnotorious (http://localhost:8000/app/js/base.js:60249:13) at Object.makeAnnotatable (http://localhost:8000/app/js/base.js:60456:20) at activate (http://localhost:8000/app/js/app.js:8278:23) at caseviewcontroller (http://localhost:8000/app/js/app.js:8272:3) at invoke (http://localhost:8000/app/js/base.js:13658:17) at Object.instantiate (http://localhost:8000/app/js/base.js:13666:27) at http://localhost:8000/app/js/base.js:18222:28 at http://localhost:8000/app/js/base.js:47121:28 at invokeLinkFn (http://localhost:8000/app/js/base.js:17858:9) at nodeLinkFn (http://localhost:8000/app/js/base.js:17358:11)

added html like this. "img id="aimage" src="http://annotorious.github.io/img/splash-image-1.jpg" data-original="stable-identifier-for-image" annotorious-annotate"

But am getting error. How to fix it.

viswanath-puttagunta commented 6 years ago

Hello All,

Is there a tip on how to resolve this?

Any help would be greatly appreciated.

Regards, Vish

gtopsis commented 6 years ago

You need both annotorious.js (anno object is defined there) and angular-annotorious.js.

diazenal commented 6 years ago

const anno = window['anno'];

BALAMRGAN commented 6 years ago

It worked after adding annotorious.min.js