Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created April 24, 2018 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/66bcc4009b7dfcebb5cc45b966ce6ebb to your computer and use it in GitHub Desktop.
Save parzibyte/66bcc4009b7dfcebb5cc45b966ce6ebb to your computer and use it in GitHub Desktop.
angular
.module("CodigosQR", ["ja.qr"])
.controller("ControladorPrincipal", ["$scope", function($scope) {
$scope.codigos = ["123", "Hola", "parzibyte.me"];
}]);
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js" type="text/javascript"></script>
<script src="https://cdn.rawgit.com/janantala/angular-qr/master/lib/qrcode.js" type="text/javascript"></script>
<script src="https://cdn.rawgit.com/janantala/angular-qr/master/src/angular-qr.js" type="text/javascript"></script>
<script src="script.js"></script>
</head>
<body ng-app="CodigosQR">
<div ng-controller="ControladorPrincipal">
<div ng-repeat="codigo in codigos track by $index">
<qr text="codigo"></qr>
<br>
<br>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment