A serial number input directive using angular.js