I use some ready-made templates in an Angular 4 application. And after logging in, I need to reload these templates. Can anyone help with this? I tried something like
import { Component, Compiler } from '@angular/core'; this.compiler.clearCache(); this.compiler.compileModuleAndAllComponentsAsync(SharedModule);
And I see that this template is reloading in the Network tool, but the Angular component is not showing.
source share