petunjuk
Directive ('bspopup', function ($ parse) {return {membutuhkan: 'ngModel', batasi: 'a', tautan: fungsi (lingkup, elem, attrs, ctrl) {scope. $ watch (function () {return $ parse (ctrl. $ modelValue) (scope); function () {return $ parse (ctrl. $ modelValue) (scope); function () {newvAee (ctrl) {new -new (scope) (scope);} function (newvAee (ctrl. {$ (elem) .modal ('hide'); return;} if (newValue == 1) {$ (elem) .modal ('show'); return;}});}});<button data-target="#myModal" data-toggle="modal" ng-click="sss()">Popular box</button><div aria-hidden="true" aria-labelledby="myModalLabel" role="dialog" tabindex="-1" bs-popup="" ng-model="test"id="myModal" style="display: tidak ada; "> <div> <div> <div> <tombol aria-hidden =" true "data-dismiss =" modal "type =" tombol "> × </button> <h4 id =" myModallabel "> kotak pop </h4> </div> <Div> <tombol/-klik =" hhh () "> test </div> </divod <!--------------------------div> </c-click =" hhh () "> test </div> </divod </divod =" hhh () "> test </hhh> </divod> </tutpen/uji </diver /.modal-dialog-> </div>
Di atas adalah pengantar editor untuk bootstrap dan angularjs dengan kotak pop-up buatan sendiri. Saya harap ini akan membantu semua orang. Jika Anda memiliki pertanyaan, silakan tinggalkan saya pesan dan editor akan membalas semua orang tepat waktu. Terima kasih banyak atas dukungan Anda ke situs web Wulin.com!