We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
view code for turn js <div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"></div>
<div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"></div>
view code for turn js with annotorious <div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"><img class="aaaaaaaa_{{$index}}" id="aaaaaaaa_{{$index}}" style="" src="{{constant.bookImageUrlMed}}{{page.page_image}}"/></div>
<div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"><img class="aaaaaaaa_{{$index}}" id="aaaaaaaa_{{$index}}" style="" src="{{constant.bookImageUrlMed}}{{page.page_image}}"/></div>
Controller ``` for(var i=0;i<$scope.pagesData.length;i++){ var photo = angular.element(document).find(".aaaaaaaa_"+i)[0]; annotoriousService.makeAnnotatable(photo); annotoriousService.setProperties({ outline: '#00f', stroke: '#ff0000', fill: 'rgba(255, 0, 0, 0.3)', 'hi_stroke': '#00ff00', 'hi_fill': 'rgba(0, 255, 0, 0.3)' }); )
but it only works for 1st page.
The text was updated successfully, but these errors were encountered:
Hi,
when you create/generate a new template, you need to recreate the annotation initialization. (its default behaviour from annotorious)
You may find a better explanation here: http://stackoverflow.com/questions/30720798/how-to-use-annotorious-with-angular
Don't forget to rate the answers in stackoverflow 👍
Sorry, something went wrong.
No branches or pull requests
view code for turn js
<div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"></div>
view code for turn js with annotorious
<div ng-repeat="page in pagesData" style="background-image:url({{constant.bookImageUrlMed}}{{page.page_image}})"><img class="aaaaaaaa_{{$index}}" id="aaaaaaaa_{{$index}}" style="" src="{{constant.bookImageUrlMed}}{{page.page_image}}"/></div>
Controller
```
for(var i=0;i<$scope.pagesData.length;i++){
var photo = angular.element(document).find(".aaaaaaaa_"+i)[0];
annotoriousService.makeAnnotatable(photo);
annotoriousService.setProperties({
outline: '#00f',
stroke: '#ff0000',
fill: 'rgba(255, 0, 0, 0.3)',
'hi_stroke': '#00ff00',
'hi_fill': 'rgba(0, 255, 0, 0.3)'
});
)
The text was updated successfully, but these errors were encountered: