AngularJS open modal on button click

后端 未结 4 897
青春惊慌失措
青春惊慌失措 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:06

    Set Jquery in scope

    $scope.$ = $;

    and call in html

    ng-click="$('#novoModelo').modal('show')"

提交回复
热议问题