angularjs - How to get popup when url status success in angular js -


i doing event scheduler app using angular js. in calendar when clicking event sent event id end getting event details.here how pop on calendar when url status true.

my code is:

$scope.alertoneventclick = function( date, jsevent, view){     var event_id=date.id;     $http.post("youin-api/v2/business/event_information",{"event_id":event_id}).then(function(response) {     if(response.error="true")     {       $scope.eventinformation= response;     }     });      }; 

my bootstrap model pop is:

<div class="modal fade" id="addusers" ng-model="eventinformation" role="dialog">     <div class="modal-dialog " style="top:80px;">       <div class="modal-content">         <div class="modal-header">           <button type="button" class="close" data-dismiss="modal">&times;</button>           <h4 class="modal-title">user details</h4>         </div>         <div class="modal-body">           <p><form role="form" ng-submit="addusers(addusers)">     <div class="form-group">       <label for="pwd">user type</label>       <input type="text" class="form-control"  id="user_type" ng-model="addusers.user_type" value="{{addusers.user_type}}">     </div>     <div class="form-group">       <label for="pwd">created by</label>       <input ty{{addusers.user_type}}pe="text" class="form-control"   id="created_by" ng-model="addusers.created_by" value="">     </div>         <div class="modal-footer">           <button type="button" class="btn btn-default" data-dismiss="modal">close</button>            <button type="submit" class="btn btn-default">submit</button>         </div>          </form></p>          </div>       </div>     </div>   </div> 

thanks in advance..!!

to manually trigger modal show javascript. use this.

$('#addusers').modal('show') 

note: have add bootstrap.js , jquery.js use functionality.

you can view complete modal api options here.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -