Skip to content

Commit 480f534

Browse files
committed
build: add mising bits for material-examples package
Adds: * Missing `moduleId` from each example component * Missing `flatModuleId` from the ngc options * Missing typing for `module` in order to set moduleId * Makes templateUrl and styleUrls for example components match material components.
1 parent 508b141 commit 480f534

File tree

50 files changed

+128
-74
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+128
-74
lines changed

src/material-examples/autocomplete-overview/autocomplete-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ import 'rxjs/add/operator/startWith';
55
import 'rxjs/add/operator/map';
66

77
@Component({
8+
moduleId: module.id,
89
selector: 'autocomplete-overview-example',
9-
templateUrl: './autocomplete-overview-example.html',
10+
templateUrl: 'autocomplete-overview-example.html',
1011
})
1112
export class AutocompleteOverviewExample {
1213
stateCtrl: FormControl;

src/material-examples/button-overview/button-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'button-overview-example',
6-
templateUrl: './button-overview-example.html',
7+
templateUrl: 'button-overview-example.html',
78
})
89
export class ButtonOverviewExample {}

src/material-examples/button-toggle-exclusive/button-toggle-exclusive-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'button-toggle-exclusive-example',
6-
templateUrl: './button-toggle-exclusive-example.html',
7-
styleUrls: ['./button-toggle-exclusive-example.css'],
7+
templateUrl: 'button-toggle-exclusive-example.html',
8+
styleUrls: ['button-toggle-exclusive-example.css'],
89
})
910
export class ButtonToggleExclusiveExample {}

src/material-examples/button-toggle-overview/button-toggle-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'button-toggle-overview-example',
6-
templateUrl: './button-toggle-overview-example.html',
7+
templateUrl: 'button-toggle-overview-example.html',
78
})
89
export class ButtonToggleOverviewExample {}

src/material-examples/button-types/button-types-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'button-types-example',
6-
templateUrl: './button-types-example.html',
7-
styleUrls: ['./button-types-example.css'],
7+
templateUrl: 'button-types-example.html',
8+
styleUrls: ['button-types-example.css'],
89
})
910
export class ButtonTypesExample {}

src/material-examples/card-fancy/card-fancy-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'card-fancy-example',
6-
templateUrl: './card-fancy-example.html',
7-
styleUrls: ['./card-fancy-example.css'],
7+
templateUrl: 'card-fancy-example.html',
8+
styleUrls: ['card-fancy-example.css'],
89
})
910
export class CardFancyExample {}

src/material-examples/card-overview/card-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'card-overview-example',
6-
templateUrl: './card-overview-example.html',
7+
templateUrl: 'card-overview-example.html',
78
})
89
export class CardOverviewExample {}

src/material-examples/checkbox-configurable/checkbox-configurable-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'checkbox-configurable-example',
6-
templateUrl: './checkbox-configurable-example.html',
7-
styleUrls: ['./checkbox-configurable-example.css'],
7+
templateUrl: 'checkbox-configurable-example.html',
8+
styleUrls: ['checkbox-configurable-example.css'],
89
})
910
export class CheckboxConfigurableExample {
1011
checked = false;

src/material-examples/checkbox-overview/checkbox-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'checkbox-overview-example',
6-
templateUrl: './checkbox-overview-example.html',
7+
templateUrl: 'checkbox-overview-example.html',
78
})
89
export class CheckboxOverviewExample {}

src/material-examples/chips-overview/chips-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'chips-overview-example',
6-
templateUrl: './chips-overview-example.html',
7+
templateUrl: 'chips-overview-example.html',
78
})
89
export class ChipsOverviewExample {}

src/material-examples/chips-stacked/chips-stacked-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'chips-stacked-example',
6-
templateUrl: './chips-stacked-example.html',
7-
styleUrls: ['./chips-stacked-example.css'],
7+
templateUrl: 'chips-stacked-example.html',
8+
styleUrls: ['chips-stacked-example.css'],
89
})
910
export class ChipsStackedExample {
1011
color: string;

src/material-examples/datepicker-overview/datepicker-overview-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'datepicker-overview-example',
6-
templateUrl: './datepicker-overview-example.html',
7-
styleUrls: ['./datepicker-overview-example.css'],
7+
templateUrl: 'datepicker-overview-example.html',
8+
styleUrls: ['datepicker-overview-example.css'],
89
})
910
export class DatepickerOverviewExample {}

src/material-examples/dialog-elements/dialog-elements-example.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import {MdDialog} from '@angular/material';
33

44

55
@Component({
6+
moduleId: module.id,
67
selector: 'dialog-elements-example',
7-
templateUrl: './dialog-elements-example.html',
8+
templateUrl: 'dialog-elements-example.html',
89
})
910
export class DialogElementsExample {
1011
constructor(public dialog: MdDialog) { }
@@ -16,7 +17,8 @@ export class DialogElementsExample {
1617

1718

1819
@Component({
20+
moduleId: module.id,
1921
selector: 'dialog-elements-example-dialog',
20-
templateUrl: './dialog-elements-example-dialog.html',
22+
templateUrl: 'dialog-elements-example-dialog.html',
2123
})
2224
export class DialogElementsExampleDialog { }

src/material-examples/dialog-overview/dialog-overview-example.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import {MdDialog} from '@angular/material';
33

44

55
@Component({
6+
moduleId: module.id,
67
selector: 'dialog-overview-example',
7-
templateUrl: './dialog-overview-example.html',
8+
templateUrl: 'dialog-overview-example.html',
89
})
910
export class DialogOverviewExample {
1011
constructor(public dialog: MdDialog) {}
@@ -16,7 +17,8 @@ export class DialogOverviewExample {
1617

1718

1819
@Component({
20+
moduleId: module.id,
1921
selector: 'dialog-overview-example-dialog',
20-
templateUrl: './dialog-overview-example-dialog.html',
22+
templateUrl: 'dialog-overview-example-dialog.html',
2123
})
2224
export class DialogOverviewExampleDialog {}

src/material-examples/dialog-result/dialog-result-example.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ import {MdDialog, MdDialogRef} from '@angular/material';
33

44

55
@Component({
6+
moduleId: module.id,
67
selector: 'dialog-result-example',
7-
templateUrl: './dialog-result-example.html',
8+
templateUrl: 'dialog-result-example.html',
89
})
910
export class DialogResultExample {
1011
selectedOption: string;
@@ -21,8 +22,9 @@ export class DialogResultExample {
2122

2223

2324
@Component({
25+
moduleId: module.id,
2426
selector: 'dialog-result-example-dialog',
25-
templateUrl: './dialog-result-example-dialog.html',
27+
templateUrl: 'dialog-result-example-dialog.html',
2628
})
2729
export class DialogResultExampleDialog {
2830
constructor(public dialogRef: MdDialogRef<DialogResultExampleDialog>) {}

src/material-examples/example-module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ import {
8282
export interface LiveExample {
8383
title: string;
8484
component: any;
85-
additionalFiles: string[];
86-
selectorName: string;
85+
additionalFiles?: string[];
86+
selectorName?: string;
8787
}
8888

8989
/**

src/material-examples/grid-list-dynamic/grid-list-dynamic-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'grid-list-dynamic-example',
6-
templateUrl: './grid-list-dynamic-example.html',
7+
templateUrl: 'grid-list-dynamic-example.html',
78
})
89
export class GridListDynamicExample {
910
tiles = [
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import {Component} from '@angular/core';
22

33
@Component({
4+
moduleId: module.id,
45
selector: 'grid-list-overview-example',
5-
styleUrls: ['./grid-list-overview-example.css'],
6-
templateUrl: './grid-list-overview-example.html',
6+
styleUrls: ['grid-list-overview-example.css'],
7+
templateUrl: 'grid-list-overview-example.html',
78
})
89
export class GridListOverviewExample {}

src/material-examples/icon-overview/icon-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'icon-overview-example',
6-
templateUrl: './icon-overview-example.html',
7+
templateUrl: 'icon-overview-example.html',
78
})
89
export class IconOverviewExample {}

src/material-examples/icon-svg-example/icon-svg-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import {MdIconRegistry} from '@angular/material';
44

55

66
@Component({
7+
moduleId: module.id,
78
selector: 'icon-svg-example',
8-
templateUrl: './icon-svg-example.html',
9+
templateUrl: 'icon-svg-example.html',
910
})
1011
export class IconSvgExample {
1112
constructor(iconRegistry: MdIconRegistry, sanitizer: DomSanitizer) {

src/material-examples/input-form/input-form-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'input-form-example',
6-
templateUrl: './input-form-example.html',
7-
styleUrls: ['./input-form-example.css'],
7+
templateUrl: 'input-form-example.html',
8+
styleUrls: ['input-form-example.css'],
89
})
910
export class InputFormExample {}

src/material-examples/input-overview/input-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'input-overview-example',
6-
templateUrl: './input-overview-example.html',
7+
templateUrl: 'input-overview-example.html',
78
})
89
export class InputOverviewExample {}

src/material-examples/list-overview/list-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'list-overview-example',
6-
templateUrl: './list-overview-example.html',
7+
templateUrl: 'list-overview-example.html',
78
})
89
export class ListOverviewExample {}

src/material-examples/list-sections/list-sections-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'list-sections-example',
6-
styleUrls: ['./list-sections-example.css'],
7-
templateUrl: './list-sections-example.html',
7+
styleUrls: ['list-sections-example.css'],
8+
templateUrl: 'list-sections-example.html',
89
})
910
export class ListSectionsExample {
1011
folders = [

src/material-examples/menu-icons/menu-icons-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'menu-icons-example',
6-
templateUrl: './menu-icons-example.html',
7+
templateUrl: 'menu-icons-example.html',
78
})
89
export class MenuIconsExample {}

src/material-examples/menu-overview/menu-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'menu-overview-example',
6-
templateUrl: './menu-overview-example.html',
7+
templateUrl: 'menu-overview-example.html',
78
})
89
export class MenuOverviewExample {}

src/material-examples/progress-bar-configurable/progress-bar-configurable-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'progress-bar-configurable-example',
6-
templateUrl: './progress-bar-configurable-example.html',
7-
styleUrls: ['./progress-bar-configurable-example.css'],
7+
templateUrl: 'progress-bar-configurable-example.html',
8+
styleUrls: ['progress-bar-configurable-example.css'],
89
})
910
export class ProgressBarConfigurableExample {
1011
color = 'primary';

src/material-examples/progress-bar-overview/progress-bar-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'progress-bar-overview-example',
6-
templateUrl: './progress-bar-overview-example.html',
7+
templateUrl: 'progress-bar-overview-example.html',
78
})
89
export class ProgressBarOverviewExample {}

src/material-examples/progress-spinner-configurable/progress-spinner-configurable-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'progress-spinner-configurable-example',
6-
templateUrl: './progress-spinner-configurable-example.html',
7-
styleUrls: ['./progress-spinner-configurable-example.css'],
7+
templateUrl: 'progress-spinner-configurable-example.html',
8+
styleUrls: ['progress-spinner-configurable-example.css'],
89
})
910
export class ProgressSpinnerConfigurableExample {
1011
color = 'primary';

src/material-examples/progress-spinner-overview/progress-spinner-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'progress-spinner-overview-example',
6-
templateUrl: './progress-spinner-overview-example.html',
7+
templateUrl: 'progress-spinner-overview-example.html',
78
})
89
export class ProgressSpinnerOverviewExample {}

src/material-examples/radio-ng-model/radio-ng-model-example.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'radio-ng-model-example',
6-
templateUrl: './radio-ng-model-example.html',
7-
styleUrls: ['./radio-ng-model-example.css'],
7+
templateUrl: 'radio-ng-model-example.html',
8+
styleUrls: ['radio-ng-model-example.css'],
89
})
910
export class RadioNgModelExample {
1011
favoriteSeason: string;

src/material-examples/radio-overview/radio-overview-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'radio-overview-example',
6-
templateUrl: './radio-overview-example.html',
7+
templateUrl: 'radio-overview-example.html',
78
})
89
export class RadioOverviewExample {}

src/material-examples/select-form/select-form-example.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import {Component} from '@angular/core';
22

33

44
@Component({
5+
moduleId: module.id,
56
selector: 'select-form-example',
6-
templateUrl: './select-form-example.html',
7+
templateUrl: 'select-form-example.html',
78
})
89
export class SelectFormExample {
910
selectedValue: string;

0 commit comments

Comments
 (0)