Skip to content

Commit c98dc4a

Browse files
committed
fixing some errors with templates functions
1 parent 8a2866a commit c98dc4a

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/components/button/button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
'button[md-fab], button[md-mini-fab]',
2020
inputs: ['color'],
2121
host: {
22-
'[class.md-button-focus]': 'isKeyboardFocused',
22+
'[class.md-button-focus]': '_isKeyboardFocused',
2323
'(mousedown)': '_setMousedown()',
2424
'(focus)': '_setKeyboardFocus()',
2525
'(blur)': '_removeKeyboardFocus()',

src/components/input/input.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
import {
2020
NG_VALUE_ACCESSOR,
2121
ControlValueAccessor,
22+
DefaultValueAccessor,
2223
NgModel,
2324
} from '@angular/forms';
2425
import {NgIf} from '@angular/common';
@@ -98,7 +99,7 @@ export class MdHint {
9899
templateUrl: 'input.html',
99100
styleUrls: ['input.css'],
100101
providers: [MD_INPUT_CONTROL_VALUE_ACCESSOR],
101-
directives: [NgIf, NgModel],
102+
directives: [DefaultValueAccessor, NgIf, NgModel],
102103
host: {'(click)' : 'focus()'}
103104
})
104105
export class MdInput implements ControlValueAccessor, AfterContentInit, OnChanges {

src/components/progress-circle/progress-circle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ export class MdProgressCircle implements OnDestroy {
5353
* because voiceover does not report the progress indicator as indeterminate if the aria min
5454
* and/or max value are number values.
5555
*/
56-
get ariaValueMin() {
56+
get _ariaValueMin() {
5757
return this.mode == 'determinate' ? 0 : null;
5858
}
5959

60-
get ariaValueMax() {
60+
get _ariaValueMax() {
6161
return this.mode == 'determinate' ? 100 : null;
6262
}
6363

src/components/tabs/tab-group.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
</div>
1717
<div class="md-tab-body-wrapper">
1818
<div class="md-tab-body"
19-
*ngFor="let tab of tabs; let i = index"
20-
[id]="getTabContentId(i)"
19+
*ngFor="let tab of _tabs; let i = index"
20+
[id]="_getTabContentId(i)"
2121
[class.md-active]="selectedIndex == i"
2222
[attr.aria-labelledby]="getTabLabelId(i)">
2323
<template role="tabpanel" [portalHost]="tab.content" [ngIf]="selectedIndex == i"></template>

0 commit comments

Comments
 (0)