So I have my auth
class injected into my main.js
:
import {Auth} from 'auth';
import {inject} from 'aurelia-framework';
@inject(Auth)
export class App {
constructor(auth) {
this.auth = auth;
}
get isLoggedIn() { return this.auth.isLoggedIn; }
}
so in my app.html
<form>
<!-- form login elements -->
</form>
how do I make this element conditionally display based on my app getter function.
<form if.bind="isLoggedIn"></form>
aurelia.io/docs.html#/aurelia/framework/1.0.0-beta.1.1.1/doc/… – Damaraland