Closed
Description
Whenever I use a $broadcast
with schemaForm.error.
:
$scope.$broadcast('schemaForm.error.name','usernameAlreadyTaken','The username is already taken')
The key name
in the $scope.model
object becomes undefined when I change the value in the input.
However, when I switch the error off with:
$scope.$broadcast('schemaForm.error.name','usernameAlreadyTaken',true)
The error becomes a 'required' error and when I type and change the value in the input, the value is bound again in $scope.model
.
Is this a bug or am I using the $broadcast
wrong?