How to get popup when url status success in angular js
<p>I am doing an event scheduler app using angular js. In calendar when i am clicking  the event i am sent the event id to back end to getting event details.Here how to get the pop up on my calendar when the url status is true.</p>

<p>My code is:</p>

<pre><code>$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;
    }
    }); 
    };
</code></pre>

<p>My bootstrap model pop up is:</p>

<pre><code>&lt;div class="modal fade" id="AddUsers" ng-model="eventInformation" role="dialog"&gt;
    &lt;div class="modal-dialog " style="top:80px;"&gt;
      &lt;div class="modal-content"&gt;
        &lt;div class="modal-header"&gt;
          &lt;button type="button" class="close" data-dismiss="modal"&gt;&amp;times;&lt;/button&gt;
          &lt;h4 class="modal-title"&gt;User Details&lt;/h4&gt;
        &lt;/div&gt;
        &lt;div class="modal-body"&gt;
          &lt;p&gt;&lt;form role="form" ng-submit="AddUsers(addusers)"&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="pwd"&gt;User Type&lt;/label&gt;
      &lt;input type="text" class="form-control"  id="user_type" ng-model="addusers.user_type" value="{{addusers.user_type}}"&gt;
    &lt;/div&gt;
    &lt;div class="form-group"&gt;
      &lt;label for="pwd"&gt;Created By&lt;/label&gt;
      &lt;input ty{{addusers.user_type}}pe="text" class="form-control"   id="created_by" ng-model="addusers.created_by" value=""&gt;
    &lt;/div&gt;
        &lt;div class="modal-footer"&gt;
          &lt;button type="button" class="btn btn-default" data-dismiss="modal"&gt;Close&lt;/button&gt;
           &lt;button type="submit" class="btn btn-default"&gt;Submit&lt;/button&gt;
        &lt;/div&gt;
         &lt;/form&gt;&lt;/p&gt;
         &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
</code></pre>

<p>thanks in advance..!!</p>