angular-hmr icon indicating copy to clipboard operation
angular-hmr copied to clipboard

Recreating element fails when using class-based selector

Open amaschas opened this issue 7 years ago • 0 comments

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?

amaschas avatar Jan 18 '17 20:01 amaschas