Disable ui-sref based on a condition

前端 未结 7 616
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 11:22

Can you tell me a way to disable the submit button, which changes to a new state by:

Submit

The butto

7条回答
  •  时光说笑
    2020-12-16 11:31

    in ui-sref you can try and hide url based on codition for example i have this code and it works in urls

    
    

    and in my controller

    $scope.canEdit = function(category){
       return category == AuthUser.username ;
    }
    

    Authuser is a factory in my main page

    
    

提交回复
热议问题