I'm trying to make a navigation menu with toggable width value in Angular. In my assets folder, I have a variables.scss file that contains all variables bundled in one file for easy accessibility. my variables.scss looks like so:
//global variables
$globalNavWidth: 250px;
The navigation Angular component has its own stylesheet named navbar.scss which has the width property linked to a variable like so:
.navbar{
width: $globalNavWidth;
my folder structure looks something like this.
I have a button in my navigation that triggers the function 'toggleNavWidth()' on click. Is there any way I can change the global variable $globalNavWidth from this toggleNavWidth() function?