I am currently developing a login feature for my application using Angular 2 version rc-1. I am facing an issue where I need to figure out how to trigger the opening of my modal without the need for a button click.
Upon launching my application, I need to check whether the user is logged in or not (using localStorage). If the user is not logged in, the login modal should automatically appear.
Therefore, the opening and closing of the modal is based on a boolean condition rather than a button click event.
Can anyone guide me on how to open a login modal without requiring a button click?
Appreciate your assistance.