test(ivy): add an integration test for ngcc (#25406)
This commit adds an integration test for ngcc, which runs ngcc against most @angular packages. It does not yet make any assertions on the result. PR Close #25406
This commit is contained in:

committed by
Matias Niemelä

parent
d33e0091df
commit
c8baace554
20
integration/ngcc/src/main.ts
Normal file
20
integration/ngcc/src/main.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import {Component, NgModule, ɵrenderComponent as renderComponent} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
@Component({
|
||||
selector: 'hello-world',
|
||||
template: `
|
||||
<button (click)="visible = true">See Message</button>
|
||||
<h2 *ngIf="visible">Hello World</h2>
|
||||
`,
|
||||
})
|
||||
class HelloWorld {
|
||||
visible = false;
|
||||
}
|
||||
|
||||
@NgModule({
|
||||
declarations: [HelloWorld],
|
||||
imports: [CommonModule],
|
||||
})
|
||||
class Module {}
|
||||
|
||||
renderComponent(HelloWorld);
|
Reference in New Issue
Block a user