Pete Bacon Darwin 603e7935aa test(ivy): ngcc - test compiling the Angular Material library (#26403)
* rename test helper script
* add material to the ngcc integration test
* add MatButton to ngcc integration test checks
* remove platform-server from ngcc integration test
  This package does not yet compile as it contains a package-private
  (internal) decorated class, which the ngcc compiler does not yet
  handle.

PR Close #26403
2018-11-01 14:13:26 -07:00

23 lines
542 B
TypeScript

import {Component, NgModule, ɵrenderComponent as renderComponent} from '@angular/core';
import {CommonModule} from '@angular/common';
import {MatButtonModule} from '@angular/material/button';
@Component({
selector: 'hello-world',
template: `
<button mat-button (click)="visible = true">See Message</button>
<h2 *ngIf="visible">Hello World</h2>
`,
})
class HelloWorld {
visible = false;
}
@NgModule({
declarations: [HelloWorld],
imports: [CommonModule, MatButtonModule],
})
class Module {}
renderComponent(HelloWorld);