Tried to use the great rrssb (social sharing buttons) inside my Aurelia app. I got it working only by injecting the script inside my page the ugly way. So I’m here with this topic in the hope that someone could help me find a better way to use it.
Here is the way I got it working:
reference the css in my
- reference the js in my
Here I use the scriptinjector custom element well known.
It works, I can see social sharing buttons nicely displayed on my page.
But this is not the ideal way of doing.
What I tried (but does not work):
- added reference to rrssb in my
in my console executing
added reference to rrssb in my
importing the package in one of my ts page
build (no errors) and start my app
Unfortunately the social sharing buttons displayed are misplaced. I can see them on my page (the css is ok) but there is a big blank space on the right because the js scripts are simply not read and thus not displayed as it should be.
(sorry I can only upload 1 photo at this moment)
So I wonder if I did something wrong or if the only way of doing is what I suggest at first.
Thanks for your help.
Note: skip directly to the last topic on this page to discover the solution.