Skip to content

Injecting error deletes value on change #637

Closed
@Zundrium

Description

@Zundrium

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions