angular-qr icon indicating copy to clipboard operation
angular-qr copied to clipboard

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

Open LaurentIsRunning opened this issue 11 years ago • 2 comments

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...

LaurentIsRunning avatar Sep 19 '14 13:09 LaurentIsRunning

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 avatar Mar 18 '15 03:03 recmo

The appearent cause was this issue https://github.com/angular/angular.js/issues/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.

recmo avatar Mar 18 '15 04:03 recmo