Skip to content

Commit 08b2685

Browse files
committed
update(qr): Allow directive use as an attribute.
From janantala#26.
1 parent 0f4f009 commit 08b2685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/angular-qr.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
.directive('qr', ['$timeout', '$window', function($timeout, $window) {
7777

7878
return {
79-
restrict: 'E',
79+
restrict: 'AE',
8080
template: '<canvas ng-hide="image"></canvas><img ng-if="image" ng-src="{{canvasImage}}"/>',
8181
scope: {
8282
typeNumber: '=',

0 commit comments

Comments
 (0)