title: redirecting from a modal using ng-click and the data-dismiss doesn't work
body: <p>I was trying to navigate from a modal in a page to another page by adding a function to ng-click. When I remove the function assigned to ng-click, the data-dismiss works properly and the modal gets removed. But when I use the ng-click with a function, which redirects to an alternative page, it gets directed to the page, but the modal has not been dismissed. (the new page seems in the disabled state)</p>
  
  <pre><code>&lt;button type="button" class="btn btn-success" ng-click="addNewProject()" 
  data-dismiss="modal"&gt;Add Project&lt;/button&gt;
  </code></pre>
  
  <p>The addNewProject() function redirects to the other page and adds the details in the modal to the database.
  I would like to know a way to get the page which was loaded later, in the editable way. (the modal should be completely removed.)</p>