refactor(core): move server-only DomAdapter methods into ServerRenderer (#32408)
PR Close #32408
This commit is contained in:

committed by
Miško Hevery

parent
1ed3531049
commit
970b58b13f
@ -24,7 +24,7 @@ export class ServerStylesHost extends SharedStylesHost {
|
||||
private _addStyle(style: string): void {
|
||||
let adapter = getDOM();
|
||||
const el = adapter.createElement('style');
|
||||
adapter.setText(el, style);
|
||||
el.textContent = style;
|
||||
if (!!this.transitionId) {
|
||||
adapter.setAttribute(el, 'ng-transition', this.transitionId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user