title: close modal and show message on main page
body: <p>I have a modal that I want to show a success message after it is closed. My issue is controlling the message on the main view from the modal view. How do I show the message(messageSuccess) on the other view after it closes?</p>
  
  <p><strong>Plunker</strong>: <a href="http://plnkr.co/edit/IrIt4G7HzAoi4uh7euVu?p=preview" rel="nofollow">http://plnkr.co/edit/IrIt4G7HzAoi4uh7euVu?p=preview</a></p>
  
  <p>Modal controller: this closes the modal (but how do I show the message on the other view after it closes?)</p>
  
  <pre><code>  $scope.ok = function () {
      $modalInstance.close($scope.selected.item);
      $scope.messageSuccessText = 'Saved!';
      $scope.messageSuccess = true;
    };
  </code></pre>
  
  <p>HTML on main view:</p>
  
  <pre><code>&lt;div class="alert alert-success text-center" data-ng-show="messageSuccess"&gt;{{messageSuccessText}}&lt;/div&gt;
  </code></pre>