title: Angular: How to refresh view from another scope?
body: <p>Problem:
  I have a simple registration form. After new user does an Authentication my application gets him to a new link but do not show a new page with content and do not switch ng-if in the views. So the View doesn't refresh(but everything is fine when I push F5 button), I've tried to refresh it, but don't actually understand what I need to run</p>
  
  <p>Registration form:</p>
  
  <ol>
  <li>service <code>Authentication</code>. Method that set the data to the <code>localStorage</code> and transfer to a new link:</li>
  </ol>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> Authentication.registration = function(data) {
     localStorage.setItem('registrationData', JSON.stringify(data));
     $location.path('/userPage');
   }
   Authentication.ifLog = function() {
     // verify if the user exists in localStorage
   }</code></pre>
  </div>
  </div>
  </p>
  
  <ol start="2">
  <li>popup login form and it's <code>directive</code>(with it's own scope) method in the <code>Link</code> function:</li>
  </ol>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code> $scope.registration = function(form) {
       Authentication.registration(
       };</code></pre>
  </div>
  </div>
  </p>
  
  <ol start="3">
  <li>And this is all for switching the menu and transfer to user page. When user logIn we show him first and third menu and transfer him to a new page. 
  '<code>Base</code>' - it's a controller where I call <code>ifLog</code> method from <code>Authentication</code> service</li>
  </ol>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;li ng-if="Base.logined"&gt;&lt;a href="#userPage"&gt;UserPage&lt;/a&gt;&lt;/li&gt;
  &lt;li ng-if="!Base.logined" ng-click="Base.toggleModal()"&gt;LogIn&lt;/li&gt;
  &lt;li ng-if="Base.logined"&gt;{{Base.user.name}}&lt;/li&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>What should I do to update the view?</p>