File tree Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ component_benchmark(
15
15
"@npm//@angular/core" ,
16
16
"@npm//@angular/platform-browser" ,
17
17
"//src/material/button" ,
18
- "//src/cdk/a11y" ,
19
18
],
20
19
ng_srcs = [":app.module.ts" ],
21
20
prefix = "" ,
Original file line number Diff line number Diff line change 5
5
* Use of this source code is governed by an MIT-style license that can be
6
6
* found in the LICENSE file at https://angular.io/license
7
7
*/
8
- import { A11yModule } from '@angular/cdk/a11y' ;
9
8
import { Component , NgModule , ViewEncapsulation } from '@angular/core' ;
10
9
import { BrowserModule } from '@angular/platform-browser' ;
11
10
import { MatButtonModule } from '@angular/material/button' ;
12
11
13
- /**
14
- * @title Button benchmark component.
15
- */
16
12
@Component ( {
17
13
selector : 'app-root' ,
18
14
template : `
19
15
<button id="show" (click)="show()">Show</button>
20
16
<button id="hide" (click)="hide()">Hide</button>
21
17
22
- <ng-container *ngIf="isVisible">
23
- <button mat-raised-button>Basic</button>
24
- </ng-container>
18
+ <button *ngIf="isVisible" mat-raised-button>Basic</button>
25
19
` ,
26
20
encapsulation : ViewEncapsulation . None ,
27
21
styleUrls : [ '//src/material/core/theming/prebuilt/indigo-pink.css' ] ,
@@ -38,11 +32,10 @@ export class ButtonBenchmarkApp {
38
32
@NgModule ( {
39
33
declarations : [ ButtonBenchmarkApp ] ,
40
34
imports : [
41
- A11yModule ,
42
35
BrowserModule ,
43
36
MatButtonModule ,
44
37
] ,
45
38
providers : [ ] ,
46
- bootstrap : [ ButtonBenchmarkApp ]
39
+ bootstrap : [ ButtonBenchmarkApp ] ,
47
40
} )
48
41
export class AppModule { }
Original file line number Diff line number Diff line change @@ -17,13 +17,11 @@ import {MatCheckboxModule} from '@angular/material/checkbox';
17
17
<button id="hide" (click)="hide()">Hide</button>
18
18
<button id="indeterminate" (click)="indeterminate()">Indeterminate</button>
19
19
20
- <ng-container *ngIf="isVisible">
21
- <mat-checkbox
22
- [checked]="isChecked"
23
- [indeterminate]="isIndeterminate"
24
- (change)="toggleIsChecked()">
25
- Check me!</mat-checkbox>
26
- </ng-container>
20
+ <mat-checkbox *ngIf="isVisible"
21
+ [checked]="isChecked"
22
+ [indeterminate]="isIndeterminate"
23
+ (change)="toggleIsChecked()">
24
+ Check me!</mat-checkbox>
27
25
` ,
28
26
encapsulation : ViewEncapsulation . None ,
29
27
styleUrls : [ '//src/material/core/theming/prebuilt/indigo-pink.css' ] ,
@@ -47,6 +45,6 @@ export class CheckboxBenchmarkApp {
47
45
MatCheckboxModule ,
48
46
] ,
49
47
providers : [ ] ,
50
- bootstrap : [ CheckboxBenchmarkApp ]
48
+ bootstrap : [ CheckboxBenchmarkApp ] ,
51
49
} )
52
50
export class AppModule { }
You can’t perform that action at this time.
0 commit comments