命令
Directive( 'bspopup'、function($ parse){require: 'ngmodel'、制限: 'a'、link:function(scope、elem、attrs、ctrl){scope。$ watch(){return $ parse(ctrl。$ modelvalue)(scope); {$(elem).modal( 'hide'); return;} if(newValue == 1){$(elem).modal( 'show'); return;}});}});<button data-target = "#mymodal" data-toggle = "modal" ng-click = "sss()">人気のあるボックス</button> <div aria-hidden = "true" aria-labelledby = "mymodallabel"役割なし; "> <div> div> <div> <button aria-hidden =" true "data-dismiss =" Modal "Type ="ボタン ">×</button> <h4 id =" mymodallabel "> pop Box> div> <div> <button ng-click =" hhh() " /.Modal-Dialog-> < /div>
上記は、自家製のポップアップボックスを備えたブートストラップとAngularjsの編集者の紹介です。私はそれが誰にでも役立つことを願っています。ご質問がある場合は、メッセージを残してください。編集者は、すべての人に時間内に返信します。 wulin.comのウェブサイトへのご支援ありがとうございます!