janantala / angular-qr

Dynamic QR code generator for AngularJS
http://janantala.github.io/angular-qr/demo/
MIT License
210 stars 89 forks source link

Does not work inside ng-repeat #36

Open roman-mkh opened 9 years ago

roman-mkh commented 9 years ago
<!DOCTYPE html>
<html ng-app="APP">
<head>
    <meta charset="UTF-8">
    <title>angular-qr example</title>

</head>
<body>
    <div ng-repeat="x in ['hello', 'world']">
      <qr type-number="0" correction-level="'M'" size="200" input-mode="'ALPHA_NUM'" text="{{x}}"></qr>
    </div>
    <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
    <script src="/application/html/js/janantala/angular-qr/qrcode.js"></script>
    <script src="/application/html/js/janantala/angular-qr/angular-qr.js"></script>

    <script>
    angular.module("APP",["ja.qr"])
    </script>
</body>
</html>
rubenswebdev commented 9 years ago

use x instead {{x}}