In Angular, I would like to use ngClass and click event to toggle class. I looked through online but some are angular1 and there isn\'t any clear instruction or
ngClass
This should work for you.
In .html:
Some content
In .ts:
status: boolean = false; clickEvent(){ this.status = !this.status; }