angular-hmr
angular-hmr copied to clipboard
Recreating element fails when using class-based selector
If I define a component using a CSS class as a selector like this:
@Component({})
export class App {
selector: '.app-container'
}
The element recreation process will create a new element but won't apply the relevant class(es), and the component fail to find the necessary selector. Would it be possible to just duplicate the element being removed, so that the element that replaces it is identical?