AngularJS open modal on button click

后端 未结 4 873
青春惊慌失措
青春惊慌失措 2021-01-05 04:37

I am trying to learn to open a modal dialog box at the click of the button in AngularJS but unable to do so. I checked the chrome console but there are no errors. Also, sinc

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-05 05:07

    You should take a look at Batarang for AngularJS debugging

    As for your issue:

    Your scope variable is not directly attached to the modal correctly. Below is the adjusted code. You need to specify when the modal shows using ng-show

    
    
    
    

提交回复
热议问题