Disable ui-sref based on a condition

前端 未结 7 724
没有蜡笔的小新
没有蜡笔的小新 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:41

    The easiest way that I found to do it conditionally in the template

    When your condition is met, i point it to the current state which doesn't activate the transition else I transition to the state needed.

    Disabled Link 
    

提交回复
热议问题