Use "anno.addAnnotation"
I am using the function but I do not get it to work. In the original library works. What about you can give an example?
Best regards
Take a look at the last comment of: https://github.com/igorlino/angular-annotorious/issues/8
I try to run annotoriousService.AddAnnotation(myAnnotationObject) by following the api, your answers in the issue tracker but I still cannot see the result in the screen.
I try to add an annotation either when the controller loads or when the page loads but there is no difference. Also, I have used makeAnnotable but no result.
So, if you have time please give an example (or put it to demo) on how someone can dynamically could generate a annotation.
P.S: Very helpful module by the way.
I think all need information is already documented.
The only think is that you need a storage provider
- https://github.com/igorlino/angular-annotorious#using-the-angular-annotarious-service
- http://stackoverflow.com/questions/30720798/how-to-use-annotorious-with-angular
- https://github.com/igorlino/angular-annotorious#storage-providers
The demo page is at : http://igorlino.github.io/angular-annotorious/ source of the demo: https://github.com/igorlino/angular-annotorious/tree/master/demo
Hope that helps.