Skip to content

Commit 833368f

Browse files
alexeaglehansl
authored andcommitted
fix(aot): make the demo app build with AoT compiler (#1209)
Fixes #1207
1 parent 5b8d350 commit 833368f

File tree

8 files changed

+21
-13
lines changed

8 files changed

+21
-13
lines changed

src/demo-app/grid-list/grid-list-demo.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,12 @@ export class GridListDemo {
2626
{ name: 'Husi', human: 'Matias' },
2727
];
2828

29-
fixedCols: number = 4;
30-
fixedRowHeight: number = 100;
31-
ratioGutter: number = 1;
32-
fitListHeight: string = '400px';
33-
ratio: string = '4:1';
29+
basicRowHeight = 80;
30+
fixedCols = 4;
31+
fixedRowHeight = 100;
32+
ratioGutter = 1;
33+
fitListHeight = '400px';
34+
ratio = '4:1';
3435

3536
addTileCols() { this.tiles[2].cols++; }
3637
}

src/demo-app/ripple/ripple-demo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
4949
Click me
5050
</div>
5151
</section>
52-
{{centered.checked}} {{rounded.checked}}
52+
{{centered}} {{rounded}}
5353
</div>

src/demo-app/slide-toggle/slide-toggle-demo.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ import {Component} from '@angular/core';
77
templateUrl: 'slide-toggle-demo.html',
88
styleUrls: ['slide-toggle-demo.css'],
99
})
10-
export class SlideToggleDemo {}
10+
export class SlideToggleDemo {
11+
firstToggle: boolean;
12+
}

src/demo-app/slider/slider-demo.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ import {Component} from '@angular/core';
66
selector: 'slider-demo',
77
templateUrl: 'slider-demo.html',
88
})
9-
export class SliderDemo { }
9+
export class SliderDemo {
10+
demo: number;
11+
}

src/lib/core/rtl/dir.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export type LayoutDirection = 'ltr' | 'rtl';
2222
exportAs: '$implicit'
2323
})
2424
export class Dir {
25-
@Input('dir') private _dir: LayoutDirection = 'ltr';
25+
@Input('dir') _dir: LayoutDirection = 'ltr';
2626

2727
@Output() dirChange = new EventEmitter<void>();
2828

src/lib/menu/menu-item.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ export class MdMenuItem {
3838
return String(this.disabled);
3939
}
4040

41-
private _checkDisabled(event: Event) {
41+
/**
42+
* TODO: internal
43+
*/
44+
_checkDisabled(event: Event) {
4245
if (this.disabled) {
4346
event.preventDefault();
4447
event.stopPropagation();

src/lib/slider/slider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export class MdSlider implements AfterContentInit, ControlValueAccessor {
9090
* How often to show ticks. Relative to the step so that a tick always appears on a step.
9191
* Ex: Tick interval of 4 with a step of 3 will draw a tick every 4 steps (every 12 values).
9292
*/
93-
@Input('tick-interval') private _tickInterval: 'auto' | number;
93+
@Input('tick-interval') _tickInterval: 'auto' | number;
9494

9595
/**
9696
* Whether or not the thumb is sliding.

src/lib/tooltip/tooltip.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export class MdTooltip {
6060
private _viewContainerRef: ViewContainerRef,
6161
private _changeDetectionRef: ChangeDetectorRef) {}
6262

63-
/**
63+
/**
6464
* Create overlay on init
65-
* TODO: @internal
65+
* TODO: internal
6666
*/
6767
ngOnInit() {
6868
this._createOverlay();

0 commit comments

Comments
 (0)