javascript - TWBS Ratchet - How to close modal maually? -


i'm building mobile web app ratchet.
have opening modal, fill form, press button save , close modal.
now, i'm able close modal it's documentated button, , i'm able save form field...but how things together?
in rachet's documentation it's not explained how close modal manually via js.
i'm using ratchet angularjs, button calls agular function, in should close modal.
thanks

ok, solved way.
in modal i've added button

<button class="btn" ng-click="add();" href="#mymodal">save</button> 

by pressing button wanted close modal after logic. so, logic:

$scope.add = function() {   // logic here   jquery('#mymodal').removeclass('active'); }; 

i hope can else...


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -