Skip to content

ng-disabled doesn't prevent state change #2957

@CSchulz

Description

@CSchulz

I am using the ng-disabled to deactivate links but it seems the ui-router tries to go to the state:

<a ui-sref=".groups" class="btn btn-default" aria-label="Groups" ng-disabled="userController.create">
    <span class="db-icon-pencil small" aria-hidden="true"></span>Groups
</a>
Error: Could not resolve '.dcb' from state 'administration.benutzer.new'
    at Object.y.transitionTo (angular-ui-router.min.js:7)
    at Object.y.go (angular-ui-router.min.js:7)
    at angular-ui-router.min.js:7
    at angular.min.js:156
    at e (angular.min.js:45)
    at angular.min.js:48

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