Created
April 24, 2018 16:31
-
-
Save parzibyte/6f0bbc2ae2a70a4f7dc29762da2cbc3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular | |
.module("CodigosQR", ["ja.qr"]) | |
.controller("ControladorPrincipal", ["$scope", function($scope) { | |
$scope.texto = "Hola, mundo"; | |
}]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> | |
<input type="text" ng-model="texto" /> | |
<br><br> | |
<qr text="texto"></qr> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment