Saving barcode now updates angularjs model