I know how to use compiler.clearCache(). However, it seems work only for HTML templates. Often, the browsers are still using the old javascript after I had updated the TS of the components. Currently I have to explicitly clear the browser cache, and then the users may have to do so as well.
Is there a better way in Angular2/4 to ensure using updated ts/js files?