Use fresh scope for each quantity field

This commit is contained in:
Matt-Yorkley
2020-05-18 16:26:47 +02:00
parent f9f76f9082
commit d70174becc

View File

@@ -1,6 +1,7 @@
Darkswarm.directive "validateStockQuantity", (StockQuantity) ->
restrict: 'A'
require: "ngModel"
scope: true
link: (scope, element, attr, ngModel) ->
ngModel.$parsers.push (selectedQuantity) ->