test(language-service): Remove unused code in test project (#37122)
This commit removes the `bootstrap()` function in the test project since its presence has no effect on the behavior of language service. Also removes the explicit cast when instantiating `CounterDirectiveContext`, and let type inference takes care of that. PR Close #37122
This commit is contained in:
parent
009f394237
commit
a73d2a7688
|
@ -27,7 +27,3 @@ import * as ParsingCases from './parsing-cases';
|
|||
})
|
||||
export class AppModule {
|
||||
}
|
||||
|
||||
declare function bootstrap(v: any): void;
|
||||
|
||||
bootstrap(AppComponent);
|
||||
|
|
|
@ -49,7 +49,7 @@ export class CounterDirective implements OnChanges {
|
|||
ngOnChanges(_changes: SimpleChanges) {
|
||||
this.container.clear();
|
||||
for (let i = 0; i < this.counter; ++i) {
|
||||
this.container.createEmbeddedView(this.template, new CounterDirectiveContext<number>(i + 1));
|
||||
this.container.createEmbeddedView(this.template, new CounterDirectiveContext(i + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue