NglibSidenav
Sidenav Component to use with Angular Material.
CSS Styles
The (S)CSS styles are not implemented in the component.
Styles of often used components or libraries should be imported in the App-wide SCSS style file. With this technic the styles are combined in one *.css file and can be served from a CDN. Otherwise the styles would be added inline to the JavaScript code or in case of SSR in the HTML Code, which results in very large initial index.html files.
Import the Styles
Add this line to your .\src\styles.scss
@import '~@arva/nglib-sidenav/theming';
Building the library
Remeber to copy the _theming.scss file.
Run this command to build the library and copy the theming.scss file:
npm run ng build @arva/nglib-sidenav && cp ./projects/arva/nglib-sidenav/_theming.scss ./dist/arva/nglib-sidenav
On Windows use backslashes:
cp .\projects\arva\nglib-sidenav\_theming.scss .\dist\arva\nglib-sidenav