My intention is to install the Hamburger CSS from Jonathan Suh on my Angular Project.
I used npm i --s hamburgers
which successfully added the package. I also added its CSS file to my angular.json file.
When I try to add a hamburger using the code below, the hamburger is being displayed, but it's not clickable. Why is that?
<button class="hamburger hamburger--collapse" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
Steps to follow,
npm install hamburgers --save
@import '~hamburgers/_sass/hamburgers/hamburgers.scss';
(click)="active=!active" [ngClass]="active ? 'is-active' : ''"