An angular directive to create CSS based scratch off elements.
Grab the latest release from here.
Include ng-scratch-off.min.js
before your app's script file.
<script src="angular.js" type="text/javascript"></script>
<script src="ng-scratch-off.min.js" type="text/javascript"></script>
<script src="your-app.js" type="text/javascript"></script>
Add shoppinpal.scratch-off
as a dependency for your app.
angular.module('your-app', ['shoppinpal.scratch-off']);
Then use it as an element, attribute or class and specify a width and height.
<div class="scratch-off"></div>