Skip to content

Commit f169152

Browse files
jelbournmmalerba
authored andcommitted
build: add missing bits for material-examples package (#4887)
Adds: * Missing `flatModuleId` from the ngc options * Makes templateUrl and styleUrls for example components match material components.
1 parent e650b04 commit f169152

File tree

49 files changed

+74
-73
lines changed

Some content is hidden

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

49 files changed

+74
-73
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'rxjs/add/operator/map';
66

77
@Component({
88
selector: 'autocomplete-overview-example',
9-
templateUrl: './autocomplete-overview-example.html',
9+
templateUrl: 'autocomplete-overview-example.html',
1010
})
1111
export class AutocompleteOverviewExample {
1212
stateCtrl: FormControl;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'button-overview-example',
6-
templateUrl: './button-overview-example.html',
6+
templateUrl: 'button-overview-example.html',
77
})
88
export class ButtonOverviewExample {}

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

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

44
@Component({
55
selector: 'button-toggle-exclusive-example',
6-
templateUrl: './button-toggle-exclusive-example.html',
7-
styleUrls: ['./button-toggle-exclusive-example.css'],
6+
templateUrl: 'button-toggle-exclusive-example.html',
7+
styleUrls: ['button-toggle-exclusive-example.css'],
88
})
99
export class ButtonToggleExclusiveExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'button-toggle-overview-example',
6-
templateUrl: './button-toggle-overview-example.html',
6+
templateUrl: 'button-toggle-overview-example.html',
77
})
88
export class ButtonToggleOverviewExample {}

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

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

44
@Component({
55
selector: 'button-types-example',
6-
templateUrl: './button-types-example.html',
7-
styleUrls: ['./button-types-example.css'],
6+
templateUrl: 'button-types-example.html',
7+
styleUrls: ['button-types-example.css'],
88
})
99
export class ButtonTypesExample {}

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

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

44
@Component({
55
selector: 'card-fancy-example',
6-
templateUrl: './card-fancy-example.html',
7-
styleUrls: ['./card-fancy-example.css'],
6+
templateUrl: 'card-fancy-example.html',
7+
styleUrls: ['card-fancy-example.css'],
88
})
99
export class CardFancyExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'card-overview-example',
6-
templateUrl: './card-overview-example.html',
6+
templateUrl: 'card-overview-example.html',
77
})
88
export class CardOverviewExample {}

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

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

44
@Component({
55
selector: 'checkbox-configurable-example',
6-
templateUrl: './checkbox-configurable-example.html',
7-
styleUrls: ['./checkbox-configurable-example.css'],
6+
templateUrl: 'checkbox-configurable-example.html',
7+
styleUrls: ['checkbox-configurable-example.css'],
88
})
99
export class CheckboxConfigurableExample {
1010
checked = false;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'checkbox-overview-example',
6-
templateUrl: './checkbox-overview-example.html',
6+
templateUrl: 'checkbox-overview-example.html',
77
})
88
export class CheckboxOverviewExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'chips-overview-example',
6-
templateUrl: './chips-overview-example.html',
6+
templateUrl: 'chips-overview-example.html',
77
})
88
export class ChipsOverviewExample {}

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

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

44
@Component({
55
selector: 'chips-stacked-example',
6-
templateUrl: './chips-stacked-example.html',
7-
styleUrls: ['./chips-stacked-example.css'],
6+
templateUrl: 'chips-stacked-example.html',
7+
styleUrls: ['chips-stacked-example.css'],
88
})
99
export class ChipsStackedExample {
1010
color: string;

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

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

44
@Component({
55
selector: 'datepicker-overview-example',
6-
templateUrl: './datepicker-overview-example.html',
7-
styleUrls: ['./datepicker-overview-example.css'],
6+
templateUrl: 'datepicker-overview-example.html',
7+
styleUrls: ['datepicker-overview-example.css'],
88
})
99
export class DatepickerOverviewExample {}

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

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

55
@Component({
66
selector: 'dialog-elements-example',
7-
templateUrl: './dialog-elements-example.html',
7+
templateUrl: 'dialog-elements-example.html',
88
})
99
export class DialogElementsExample {
1010
constructor(public dialog: MdDialog) { }
@@ -17,6 +17,6 @@ export class DialogElementsExample {
1717

1818
@Component({
1919
selector: 'dialog-elements-example-dialog',
20-
templateUrl: './dialog-elements-example-dialog.html',
20+
templateUrl: 'dialog-elements-example-dialog.html',
2121
})
2222
export class DialogElementsExampleDialog { }

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

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

55
@Component({
66
selector: 'dialog-overview-example',
7-
templateUrl: './dialog-overview-example.html',
7+
templateUrl: 'dialog-overview-example.html',
88
})
99
export class DialogOverviewExample {
1010
constructor(public dialog: MdDialog) {}
@@ -17,6 +17,6 @@ export class DialogOverviewExample {
1717

1818
@Component({
1919
selector: 'dialog-overview-example-dialog',
20-
templateUrl: './dialog-overview-example-dialog.html',
20+
templateUrl: 'dialog-overview-example-dialog.html',
2121
})
2222
export class DialogOverviewExampleDialog {}

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

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

55
@Component({
66
selector: 'dialog-result-example',
7-
templateUrl: './dialog-result-example.html',
7+
templateUrl: 'dialog-result-example.html',
88
})
99
export class DialogResultExample {
1010
selectedOption: string;
@@ -22,7 +22,7 @@ export class DialogResultExample {
2222

2323
@Component({
2424
selector: 'dialog-result-example-dialog',
25-
templateUrl: './dialog-result-example-dialog.html',
25+
templateUrl: 'dialog-result-example-dialog.html',
2626
})
2727
export class DialogResultExampleDialog {
2828
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'grid-list-dynamic-example',
6-
templateUrl: './grid-list-dynamic-example.html',
6+
templateUrl: 'grid-list-dynamic-example.html',
77
})
88
export class GridListDynamicExample {
99
tiles = [

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

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

33
@Component({
44
selector: 'grid-list-overview-example',
5-
styleUrls: ['./grid-list-overview-example.css'],
6-
templateUrl: './grid-list-overview-example.html',
5+
styleUrls: ['grid-list-overview-example.css'],
6+
templateUrl: 'grid-list-overview-example.html',
77
})
88
export class GridListOverviewExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'icon-overview-example',
6-
templateUrl: './icon-overview-example.html',
6+
templateUrl: 'icon-overview-example.html',
77
})
88
export class IconOverviewExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {MdIconRegistry} from '@angular/material';
55

66
@Component({
77
selector: 'icon-svg-example',
8-
templateUrl: './icon-svg-example.html',
8+
templateUrl: 'icon-svg-example.html',
99
})
1010
export class IconSvgExample {
1111
constructor(iconRegistry: MdIconRegistry, sanitizer: DomSanitizer) {

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

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

44
@Component({
55
selector: 'input-form-example',
6-
templateUrl: './input-form-example.html',
7-
styleUrls: ['./input-form-example.css'],
6+
templateUrl: 'input-form-example.html',
7+
styleUrls: ['input-form-example.css'],
88
})
99
export class InputFormExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'input-overview-example',
6-
templateUrl: './input-overview-example.html',
6+
templateUrl: 'input-overview-example.html',
77
})
88
export class InputOverviewExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'list-overview-example',
6-
templateUrl: './list-overview-example.html',
6+
templateUrl: 'list-overview-example.html',
77
})
88
export class ListOverviewExample {}

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

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

44
@Component({
55
selector: 'list-sections-example',
6-
styleUrls: ['./list-sections-example.css'],
7-
templateUrl: './list-sections-example.html',
6+
styleUrls: ['list-sections-example.css'],
7+
templateUrl: 'list-sections-example.html',
88
})
99
export class ListSectionsExample {
1010
folders = [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'menu-icons-example',
6-
templateUrl: './menu-icons-example.html',
6+
templateUrl: 'menu-icons-example.html',
77
})
88
export class MenuIconsExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'menu-overview-example',
6-
templateUrl: './menu-overview-example.html',
6+
templateUrl: 'menu-overview-example.html',
77
})
88
export class MenuOverviewExample {}

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

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

44
@Component({
55
selector: 'progress-bar-configurable-example',
6-
templateUrl: './progress-bar-configurable-example.html',
7-
styleUrls: ['./progress-bar-configurable-example.css'],
6+
templateUrl: 'progress-bar-configurable-example.html',
7+
styleUrls: ['progress-bar-configurable-example.css'],
88
})
99
export class ProgressBarConfigurableExample {
1010
color = 'primary';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'progress-bar-overview-example',
6-
templateUrl: './progress-bar-overview-example.html',
6+
templateUrl: 'progress-bar-overview-example.html',
77
})
88
export class ProgressBarOverviewExample {}

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

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

44
@Component({
55
selector: 'progress-spinner-configurable-example',
6-
templateUrl: './progress-spinner-configurable-example.html',
7-
styleUrls: ['./progress-spinner-configurable-example.css'],
6+
templateUrl: 'progress-spinner-configurable-example.html',
7+
styleUrls: ['progress-spinner-configurable-example.css'],
88
})
99
export class ProgressSpinnerConfigurableExample {
1010
color = 'primary';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'progress-spinner-overview-example',
6-
templateUrl: './progress-spinner-overview-example.html',
6+
templateUrl: 'progress-spinner-overview-example.html',
77
})
88
export class ProgressSpinnerOverviewExample {}

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

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

44
@Component({
55
selector: 'radio-ng-model-example',
6-
templateUrl: './radio-ng-model-example.html',
7-
styleUrls: ['./radio-ng-model-example.css'],
6+
templateUrl: 'radio-ng-model-example.html',
7+
styleUrls: ['radio-ng-model-example.css'],
88
})
99
export class RadioNgModelExample {
1010
favoriteSeason: string;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'radio-overview-example',
6-
templateUrl: './radio-overview-example.html',
6+
templateUrl: 'radio-overview-example.html',
77
})
88
export class RadioOverviewExample {}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'select-form-example',
6-
templateUrl: './select-form-example.html',
6+
templateUrl: 'select-form-example.html',
77
})
88
export class SelectFormExample {
99
selectedValue: string;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'select-overview-example',
6-
templateUrl: './select-overview-example.html',
6+
templateUrl: 'select-overview-example.html',
77
})
88
export class SelectOverviewExample {
99
foods = [

src/material-examples/sidenav-fab/sidenav-fab-example.ts

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

44
@Component({
55
selector: 'sidenav-fab-example',
6-
templateUrl: './sidenav-fab-example.html',
7-
styleUrls: ['./sidenav-fab-example.css'],
6+
templateUrl: 'sidenav-fab-example.html',
7+
styleUrls: ['sidenav-fab-example.css'],
88
encapsulation: ViewEncapsulation.None,
99
})
1010
export class SidenavFabExample {}

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

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

44
@Component({
55
selector: 'sidenav-overview-example',
6-
templateUrl: './sidenav-overview-example.html',
7-
styleUrls: ['./sidenav-overview-example.css'],
6+
templateUrl: 'sidenav-overview-example.html',
7+
styleUrls: ['sidenav-overview-example.css'],
88
})
99
export class SidenavOverviewExample {}

src/material-examples/slide-toggle-configurable/slide-toggle-configurable-example.ts

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

44
@Component({
55
selector: 'slide-toggle-configurable-example',
6-
templateUrl: './slide-toggle-configurable-example.html',
7-
styleUrls: ['./slide-toggle-configurable-example.css'],
6+
templateUrl: 'slide-toggle-configurable-example.html',
7+
styleUrls: ['slide-toggle-configurable-example.css'],
88
})
99
export class SlideToggleConfigurableExample {
1010
color = 'accent';

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import {Component} from '@angular/core';
33

44
@Component({
55
selector: 'slide-toggle-overview-example',
6-
templateUrl: './slide-toggle-overview-example.html',
6+
templateUrl: 'slide-toggle-overview-example.html',
77
})
88
export class SlideToggleOverviewExample {}

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

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

44
@Component({
55
selector: 'slider-configurable-example',
6-
templateUrl: './slider-configurable-example.html',
7-
styleUrls: ['./slider-configurable-example.css'],
6+
templateUrl: 'slider-configurable-example.html',
7+
styleUrls: ['slider-configurable-example.css'],
88
encapsulation: ViewEncapsulation.None,
99
})
1010
export class SliderConfigurableExample {

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

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

44
@Component({
55
selector: 'slider-overview-example',
6-
templateUrl: './slider-overview-example.html',
7-
styleUrls: ['./slider-overview-example.css'],
6+
templateUrl: 'slider-overview-example.html',
7+
styleUrls: ['slider-overview-example.css'],
88
})
99
export class SliderOverviewExample {}

0 commit comments

Comments
 (0)