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

ng-if is not working for me. I had to use ng-show instead... #28

Open
LaurentIsRunning opened this issue Sep 19, 2014 · 2 comments
Open

Comments

@LaurentIsRunning
Copy link

In the directive, here is the line I had to use, for the template, to make it work:

<canvas ng-hide="image"></canvas><img ng-show="image" ng-src="{{canvasImage}}"/>

This is not really great in term of performance...

With the ng-if, the canvas and the image were shown. Actually the ng-if was not working for me...

@recmo
Copy link

recmo commented Mar 18, 2015

I have the same issue. I worked arround it by setting the image="true" attribute. I have tested the above change and it also works.

@recmo
Copy link

recmo commented Mar 18, 2015

The appearent cause was this issue angular/angular.js#7183 in Angular.js. My use of <qr> was indeed include via a templateUrl. Upgrading Angular.js from 1.0.7 to 1.3.15 fixed it for me.

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

2 participants