title: Access a variable from another Component (Ionic/Cordova/Angular)
body: <p>I'm trying to access a variable from another component in order to check if the user is logged in or not.</p>
  
  <p>The application does the follow:</p>
  
  <p>If user is loggedin (function in login.ts) user will not be null anymore therefor [disabled]=!user wont be true anymore and the first year field will be activated.</p>
  
  <p>I Implemented the following stackoverflow solution but that did not work:
  <a href="https://stackoverflow.com/questions/43347526/angular-2-cant-able-to-access-a-variable-in-one-component-from-another-componen">Angular 2, Cant able to access a variable in one Component from another Component</a></p>
  
  <p>Here is my code that is related to this problem:</p>
  
  <pre><code>          ` https://plnkr.co/edit/xzHazahrSHErJa9K0ceb?p=preview `
  </code></pre>
  
  <p>Thank you!</p>