So I am trying to use angular over JQuery which is a bit of a mind bender.
In my app I want to change text according to a users logged in state. If he is logged in, I want to show: My Account, and if no one is logged in I want to show: Login / Register.
Easy to do in Jquery, not quite sure the best method for NG.
HTML
<li>
<a (click)="openLoginForm()">
<i class="fa fa-lock"></i> Login / Register</a>
<i class="fa fa-lock"></i> My Account</a>
</li>
What I would like to do is check a variable: loggedIn, if true it shows "My Account", if false it shows "Login / Register".
I am not 100% clear how to do this via Angular2...