Fixing the library so it can be used in SSR without crashing the rendering script.
All the changes looks quite huge in diff, most of it is just the ng-cli generated code.
What is done in this PR:
update the project to Angular 9 (the minimum version that has SSR built in Angular CLI)
added SSR to example app so the functionality can be tested via ng add @nguniversal/express-engine
the sticky-bar module is now dynamically imported only if not running on server side. I don't like the solution, but I couldn't find out better way to do it. I didn't find a way how to tell the cli to not import the library when building the SSR version.
the SidebarDirective is exported in public API, library builder was complaining that it wasn't exported
Fixing the library so it can be used in SSR without crashing the rendering script.
All the changes looks quite huge in diff, most of it is just the ng-cli generated code.
What is done in this PR:
ng add @nguniversal/express-engine
sticky-bar
module is now dynamically imported only if not running on server side. I don't like the solution, but I couldn't find out better way to do it. I didn't find a way how to tell the cli to not import the library when building the SSR version.SidebarDirective
is exported in public API, library builder was complaining that it wasn't exported