Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 5, 2019 01:34
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/3ab6eaa8cfe256048631ec61f4db610c to your computer and use it in GitHub Desktop.
Save parzibyte/3ab6eaa8cfe256048631ec61f4db610c to your computer and use it in GitHub Desktop.
angular
.module("CodigosDeBarras", ["angular-barcode"])
.controller("ControladorPrincipal", ["$scope", function($scope) {
$scope.opciones = {
format: 'CODE128',
lineColor: '#000000',
width: 2,
height: 100,
displayValue: true,
fontOptions: '',
font: 'monospace',
textAlign: 'center',
textPosition: 'bottom',
textMargin: 2,
fontSize: 20,
background: '#ffffff',
margin: 0,
marginTop: undefined,
marginBottom: undefined,
marginLeft: undefined,
marginRight: undefined,
valid: function(valid) {}
};
$scope.codigos = ["hola", "mundo", "somos", "palabras"];
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment