Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Commit

Permalink
fix(docs): Enable AOT build optimizer (#2102)
Browse files Browse the repository at this point in the history
  • Loading branch information
trimox committed Feb 16, 2020
1 parent 542f699 commit 37a4a20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 3 additions & 2 deletions demos/angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
Expand Down Expand Up @@ -99,4 +100,4 @@
}
},
"defaultProject": "angular-mdc-demos"
}
}
5 changes: 1 addition & 4 deletions demos/src/app/components/select/examples.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,9 @@ <h3 class="demo-content__headline">Leading Icon</h3>
<button mdc-button (click)="meal.floatLabel = !meal.floatLabel">Float
Label: {{meal.floatLabel ? 'On' :
'Off'}}</button>
<button mdc-button (click)="meal.autosize = !meal.autosize">Autosize:
{{meal.autosize ? 'On' : 'Off'}}</button>
<button mdc-button (click)="meal.setSelectedIndex(2)">Set Index (2)</button>
</div>
<mdc-select #meal [helperText]="mealHelper" required placeholder="Pick a Meal"
autosize>
<mdc-select #meal [helperText]="mealHelper" required placeholder="Pick a Meal">
<mdc-icon mdcSelectIcon>fastfood</mdc-icon>
<mdc-menu class="demo-select-width">
<mdc-list>
Expand Down
2 changes: 1 addition & 1 deletion demos/src/app/components/select/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class Examples {
};

exampleLeadingIcon = {
html: `<mdc-select #meal [helperText]="mealHelper" required placeholder="Pick a Meal" autosize>
html: `<mdc-select #meal [helperText]="mealHelper" required placeholder="Pick a Meal">
<mdc-icon mdcSelectIcon>fastfood</mdc-icon>
<mdc-menu>
<mdc-list>
Expand Down

0 comments on commit 37a4a20

Please sign in to comment.