Reputation: 521
In my project I have two buttons called sign-in and sign-up button on my header.
What I want to achieve is,after successful sign-in i want to disable sign-in button and hide sign-up button.
Upvotes: 3
Views: 12403
Reputation: 141
You could disable the sign-in button using ng-disabled (https://docs.angularjs.org/api/ng/directive/ngDisabled) and hide de sign-up button using ng-hide (https://docs.angularjs.org/api/ng/directive/ngHide)
Here an example: https://dynamicprogrammer.com/2014/05/16/a-few-different-ways-to-improve-user-feedback-in-our-ionic-application-part-6/
Upvotes: 5