mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
fix(upgrade): remove code setting id attribute. (#19182)
The id was leftover from previous iterations of ngUpgrade and is no longer needed. Moreover, setting it can clash with CSS usage of id. Fixes #18446 PR Close #19182
This commit is contained in:
committed by
Matias Niemelä
parent
ea02b1ccfa
commit
b20c5d2c37
@@ -31,7 +31,6 @@ export class DowngradeComponentAdapter {
|
||||
private parentInjector: Injector, private $injector: angular.IInjectorService,
|
||||
private $compile: angular.ICompileService, private $parse: angular.IParseService,
|
||||
private componentFactory: ComponentFactory<any>) {
|
||||
(this.element[0] as any).id = id;
|
||||
this.componentScope = scope.$new();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user