Viewing File: /usr/local/cpanel/whostmgr/docroot/templates/twofactorauth/directives/create_qrcode.min.js

define(["angular","qrcode"],(function(angular,qrcode){var app;try{app=angular.module("App")}catch(e){app=angular.module("App",[])}app.directive("createQrCode",["$timeout",function($timeout){return{restrict:"A",scope:{qrCodeData:"="},link:function(scope,element,attrs){var the_qrcode=new qrcode(element[0]);scope.$watch("qrCodeData",(function(newValue,oldValue){if(newValue&&newValue.length>0){the_qrcode.clear();the_qrcode.makeCode(newValue)}}))}}}])}));
Back to Directory