diff --git a/src/angular-qr.js b/src/angular-qr.js
index 3b32a1e..04f7693 100644
--- a/src/angular-qr.js
+++ b/src/angular-qr.js
@@ -76,7 +76,7 @@
.directive('qr', ['$timeout', '$window', function($timeout, $window){
return {
- restrict: 'E',
+ restrict: 'EA',
template: '',
scope: {
typeNumber: '=',