This code is used on dimensions-builder.com
Sorry, it is quite a dirty hack, but it does it's job.
Improvements are always welcome. If you want to clone it, feel free to do so. The code is based on the angular 2 universal starter kit.
If not stated otherwise, all code is licensed MIT.