Skip to content
New issue

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

AngularJS expressions not working in <img-crop> #175

Open
btyroque opened this issue Mar 3, 2017 · 0 comments
Open

AngularJS expressions not working in <img-crop> #175

btyroque opened this issue Mar 3, 2017 · 0 comments

Comments

@btyroque
Copy link

btyroque commented Mar 3, 2017

Hi, I am trying to modify the project for allowing crop multiple images in the same page, but I do not know how many images I would need, this is created dynamically. So, I need to associate to the 'image' field of a dynamic value, and at the same time I put this variable in my scope. The problem is that this label is not evaluating the angular code.

<div class="cropArea" id="{{'person'+person.Id}}">
    <img-crop image="{{'person'+person.Id}}" result-image="myCroppedImage"></img-crop>
</div>

Even when they have the same code, when the page is loaded the html code shows:

<div class="cropArea" id="person12345">
    <img-crop image="{{'person'+person.Id}}" result-image="myCroppedImage"></img-crop>
</div>

In my scope since the beginning the variable $scope.person12345 is created, but It is impossible to make the binding without this part.
What can I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant