Skip to content

Commit

Permalink
build dist
Browse files Browse the repository at this point in the history
  • Loading branch information
apocheau committed Dec 7, 2015
1 parent 1b764da commit ac6e8d0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
node_modules
*.log
bower_components
lib
lib
.bowerrc
10 changes: 8 additions & 2 deletions dist/angular-barcode.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* angular barcode
* @version v0.0.1 - 2015-07-01 * @link https://github.com/ryanmc2033/angular-barcode
* @version v0.0.1 - 2015-12-07 * @link https://github.com/ryanmc2033/angular-barcode
* @author Ryan McLaughlin <ryanmc@justechn.com>
* @license MIT License, http://www.opensource.org/licenses/MIT
*/angular.module('barcode', []).directive('barcode', [
Expand Down Expand Up @@ -135,13 +135,19 @@
}
}

function watchStringAttr(scope, element, attrs) {
attrs.$observe('string', function(value){
link(scope, element, attrs);
});
}

return {
restrict: 'E',
scope: {
options: '=options'
},
template: '<canvas></canvas>',
link: link
link: watchStringAttr
};
}
]);
Expand Down
Loading

0 comments on commit ac6e8d0

Please sign in to comment.