instrucción
directive ('bspopup', function ($ parse) {return {request: 'ngmodel', restrict: 'a', link: function (scope, elem, attrs, ctrl) {scope. $ watch (function () {return $ parse (ctrl. $ modelValue) (Scope);}, function (newvalue) {if (newvalue {$ (elem) .modal ('hide'); return;} if (newValue == 1) {$ (elem) .modal ('show'); return;}});}});<botón data-target = "#mymodal" data-toggle = "modal" ng-click = "sss ()"> cuadro popular </boton> <div aria-hidden = "true" aria-labelledby = "mymodallabel" rol = "dialog" tabindex = "-1" bs-pOpup = "ng-model =" test "id =" mymodal "stiptal" staip: stiptle: stiptle: stiptle: stiptle: stiptle: stiptle: stiptle: schowly: stiptle " Ninguno; "> <Div> <div> <div> <botón aria-hidden =" true "data-dismiss =" modal "type =" botón "> × </botón> <h4 id =" mymodallabel "> pop box </h4> </div> <div> <botte ng-click =" hhh () "> test </button> </div> <!-/. /.modal-dialog-> </div>
Lo anterior es la introducción del editor a Bootstrap y Angularjs con cajas emergentes caseras. Espero que sea útil para todos. Si tiene alguna pregunta, déjame un mensaje y el editor responderá a todos a tiempo. ¡Muchas gracias por su apoyo al sitio web de Wulin.com!