I created this modal pop up using CSS and href to target the modal to open on click. This seems to work in demos, but once I tried to use on my app, every time I click on the modal to open, it changes the URL with the modal ID and refreshes the page, which shouldn't happen.
<div ng-controller="demoCtrl">
  <a href="#openModal">Open Modal</a>
  <div id="openModal" class="modalDialog">
    <a class="fullSizeBlock" href="#close"></a>
    <div class="content">
      <a href="#close">X</a>
      <h1>Modal Box</h1>
      <button ng-click="changeState()">Show Client</button>
      <div ng-if="client.state">{{client.name}}</div>
    </div>
  </div>
</div>
#openModal goes into the URL and page auto refreshes. How can I avoid this?
 
     
    