title: ionic : load a div without using window.location.reload()
body: <p>I develop a mobile application using ionic. when someone authentificate, I save his data locally using <code>localStorage</code> and show these information in a div .but when another person want to authentificate after him, the div contains the old informaion .the new data shows if I refresh the page using <code>window.location.reload()</code> .</p>
  
  <p>I want to show the new data without refreshing the page !!</p>
  
  <pre><code> &lt;div class="bloc" id="bloc"&gt;
           &lt;h2&gt;{{nom}}  {{prenom}}&lt;/h2&gt;
           &lt;p&gt;login : {{login}} &lt;/p&gt;
           &lt;p&gt;password : {{pass}} &lt;/p&gt;&lt;br&gt;
           &lt;button class="button icon-right ion-edit  button-royal rightSide" ng-click="modifier()" id="activateB"&gt;Modifier&lt;/button&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>my controller :</p>
  
  <pre><code>.controller('ConfigController',['$scope','$http','$state','sharedProperties',function($scope,$http,$state,sharedProperties){
  
       $scope.init=function() {
  
         document.getElementById('formulaire').style.display = 'none';
          var data = JSON.parse(window.localStorage['user'] || '{}');      
          $scope.idpersonne=data['id'];
          $scope.nom=data['nom'];
          $scope.prenom=data['prenom'];
          $scope.login=data['login'];
          $scope.pass=data['pass'];
          $scope.admin=data['admin'];
       }
  }])
  </code></pre>