{
expect(rippleElement).toBeFalsy('Expected a disabled radio button not to have a ripple');
});
- it('should remove ripple if md-ripple-disabled input is set', async(() => {
+ it('should remove ripple if mdRippleDisabled input is set', async(() => {
fixture.detectChanges();
for (let radioNativeElement of radioNativeElements)
{
diff --git a/src/lib/select/option.html b/src/lib/select/option.html
index 90659d08fbd9..0ced3b05a018 100644
--- a/src/lib/select/option.html
+++ b/src/lib/select/option.html
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+
diff --git a/src/lib/slider/README.md b/src/lib/slider/README.md
index 87e422e90396..781d9d0613a3 100644
--- a/src/lib/slider/README.md
+++ b/src/lib/slider/README.md
@@ -43,40 +43,40 @@ value on bottom.
### Adding a thumb label
By default the exact selected value of a slider is not visible to the user. However, this value can
-be added to the thumb by adding the `thumb-label` attribute.
+be added to the thumb by adding the `thumbLabel` attribute.
The [material design spec](https://material.google.com/components/sliders.html) recommends using the
-`thumb-label` attribute (along with `tick-interval="1"`) only for sliders that are used to display a
+`thumbLabel` attribute (along with `tickInterval="1"`) only for sliders that are used to display a
discrete value (such as a 1-5 rating).
```html
-
+
```
### Adding ticks
By default a sliders do not show tick marks along the thumb track. They can be enabled using the
-`tick-interval` attribute. The value of `tick-interval` should be a number representing the number
-of steps between between ticks. For example a `tick-interval` of `3` with a `step` of `4` will draw
+`tickInterval` attribute. The value of `tickInterval` should be a number representing the number
+of steps between between ticks. For example a `tickInterval` of `3` with a `step` of `4` will draw
tick marks at every `3` steps, which is the same as every `12` values.
```html
-
+
```
-The `tick-interval` can also be set to `auto` which will automatically choose the number of steps
+The `tickInterval` can also be set to `auto` which will automatically choose the number of steps
such that there is at least `30px` of space between ticks.
```html
-
+
```
-
+
The slider will always show a tick at the beginning and end of the track. If the remaining space
doesn't add up perfectly the last interval will be shortened or lengthened so that the tick can be
shown at the end of the track.
The [material design spec](https://material.google.com/components/sliders.html) recommends using the
-`tick-interval` attribute (set to `1` along with the `thumb-label` attribute) only for sliders that
+`tickInterval` attribute (set to `1` along with the `thumbLabel` attribute) only for sliders that
are used to display a discrete value (such as a 1-5 rating).
### Disabling the slider
@@ -91,7 +91,7 @@ value.
### Value binding
`md-slider` supports both 1-way binding and 2-way binding via `ngModel`. It also emits a `change`
-event when the value changes due to user interaction.
+event when the value changes due to user interaction.
```html
@@ -132,7 +132,7 @@ right-to-left languages.
| `max` | number | Optional, the maximum number for the slider. Default = `100`. |
| `step` | number | Optional, declares where the thumb will snap to. Default = `1`. |
| `value` | number | Optional, the value to start the slider at. |
-| `tick-interval` | `"auto"` \| number | Optional, how many steps between tick marks. |
+| `tickInterval` | `"auto"` \| number | Optional, how many steps between tick marks. |
| `invert` | boolean | Optional, whether to invert the axis the thumb moves along. |
| `vertical` | boolean | Optional, whether the slider should be oriented vertically. |
| `disabled` | boolean | Optional, whether or not the slider is disabled. Default = `false`. |
diff --git a/src/lib/slider/slider.spec.ts b/src/lib/slider/slider.spec.ts
index 951562e71017..46367d801331 100644
--- a/src/lib/slider/slider.spec.ts
+++ b/src/lib/slider/slider.spec.ts
@@ -1041,7 +1041,7 @@ class StandardSlider { }
class DisabledSlider { }
@Component({
- template: ``,
+ template: ``,
styles: [styles],
})
class SliderWithMinAndMax {
@@ -1062,19 +1062,19 @@ class SliderWithValue { }
class SliderWithStep { }
@Component({
- template: ``,
+ template: ``,
styles: [styles],
})
class SliderWithAutoTickInterval { }
@Component({
- template: ``,
+ template: ``,
styles: [styles],
})
class SliderWithSetTickInterval { }
@Component({
- template: ``,
+ template: ``,
styles: [styles],
})
class SliderWithThumbLabel { }
diff --git a/src/lib/slider/slider.ts b/src/lib/slider/slider.ts
index 5be17ccd817a..f9906be8f78f 100644
--- a/src/lib/slider/slider.ts
+++ b/src/lib/slider/slider.ts
@@ -103,10 +103,15 @@ export class MdSlider implements ControlValueAccessor {
/** Whether or not to show the thumb label. */
private _thumbLabel: boolean = false;
- @Input('thumb-label')
+ @Input('thumbLabel')
get thumbLabel(): boolean { return this._thumbLabel; }
set thumbLabel(value) { this._thumbLabel = coerceBooleanProperty(value); }
+ /** @deprecated */
+ @Input('thumb-label')
+ get _thumbLabelDeprecated(): boolean { return this._thumbLabel; }
+ set _thumbLabelDeprecated(value) { this._thumbLabel = value; }
+
private _controlValueAccessorChangeFn: (value: any) => void = () => {};
/** The last value for which a change event was emitted. */
@@ -140,12 +145,17 @@ export class MdSlider implements ControlValueAccessor {
*/
private _tickInterval: 'auto' | number = 0;
- @Input('tick-interval')
+ @Input()
get tickInterval() { return this._tickInterval; }
set tickInterval(v) {
this._tickInterval = (v == 'auto') ? v : coerceNumberProperty(v, this._tickInterval);
}
+ /** @deprecated */
+ @Input('tick-interval')
+ get _tickIntervalDeprecated() { return this.tickInterval; }
+ set _tickIntervalDeprecated(v) { this.tickInterval = v; }
+
/** The size of a tick interval as a percentage of the size of the track. */
private _tickIntervalPercent: number = 0;
diff --git a/src/lib/tabs/tab-group.scss b/src/lib/tabs/tab-group.scss
index 62a89f2e8f6e..ed3c66f93582 100644
--- a/src/lib/tabs/tab-group.scss
+++ b/src/lib/tabs/tab-group.scss
@@ -25,7 +25,7 @@
flex-grow: 1;
}
-// The bottom section of the view; contains the tab bodies
+// The bottom section of the view; contains the tab bodies
.md-tab-body-wrapper {
position: relative;
overflow: hidden;
@@ -33,7 +33,7 @@
transition: height $md-tab-animation-duration $ease-in-out-curve-function;
}
-// Wraps each tab body
+// Wraps each tab body
md-tab-body {
@include md-fill;
display: block;
@@ -45,8 +45,10 @@ md-tab-body {
z-index: 1;
flex-grow: 1;
}
- :host[md-dynamic-height] &.md-tab-body-active {
- overflow-y: hidden;
+ :host[mdDynamicHeight], :host[md-dynamic-height] {
+ &.md-tab-body-active {
+ overflow-y: hidden;
+ }
}
}
@@ -54,4 +56,4 @@ md-tab-body {
.md-tab-disabled {
cursor: default;
pointer-events: none;
-}
\ No newline at end of file
+}
diff --git a/src/lib/tabs/tab-group.ts b/src/lib/tabs/tab-group.ts
index 0f46849eeb90..a33d6814236c 100644
--- a/src/lib/tabs/tab-group.ts
+++ b/src/lib/tabs/tab-group.ts
@@ -65,10 +65,15 @@ export class MdTabGroup {
/** Whether the tab group should grow to the size of the active tab */
private _dynamicHeight: boolean = false;
- @Input('md-dynamic-height') set dynamicHeight(value: boolean) {
+ @Input('mdDynamicHeight') set dynamicHeight(value: boolean) {
this._dynamicHeight = coerceBooleanProperty(value);
}
+ /** @deprecated */
+ @Input('md-dynamic-height')
+ get _dynamicHeightDeprecated(): boolean { return this._dynamicHeight; }
+ set _dynamicHeightDeprecated(value: boolean) { this._dynamicHeight = value; }
+
/** The index of the active tab. */
private _selectedIndex: number = null;
@Input() set selectedIndex(value: number) {
diff --git a/src/lib/tabs/tab-header.html b/src/lib/tabs/tab-header.html
index a73c284021f2..238c98f7d8e1 100644
--- a/src/lib/tabs/tab-header.html
+++ b/src/lib/tabs/tab-header.html
@@ -1,6 +1,6 @@
@@ -16,8 +16,8 @@
-
\ No newline at end of file
+
diff --git a/src/lib/tooltip/README.md b/src/lib/tooltip/README.md
index 65a7857d4d01..3d0728cdfee1 100644
--- a/src/lib/tooltip/README.md
+++ b/src/lib/tooltip/README.md
@@ -6,7 +6,7 @@ The positions `before` and `after` should be used instead of `left` and `right`
### Examples
A button with a tooltip
```html
-
+
```
@@ -17,7 +17,7 @@ A button with a tooltip
| Name | Type | Description |
| --- | --- | --- |
| `md-tooltip` | `string` | The message to be displayed. |
-| `tooltip-position` | `"before"|"after"|"above"|"below"|"left"|"right"` | The position of the tooltip. |
+| `tooltipPosition` | `"before"|"after"|"above"|"below"|"left"|"right"` | The position of the tooltip. |
### Methods
diff --git a/src/lib/tooltip/tooltip.spec.ts b/src/lib/tooltip/tooltip.spec.ts
index 97481e8bbf80..8ab2ea8601b1 100644
--- a/src/lib/tooltip/tooltip.spec.ts
+++ b/src/lib/tooltip/tooltip.spec.ts
@@ -303,7 +303,7 @@ describe('MdTooltip', () => {
template: `
`
})
diff --git a/src/lib/tooltip/tooltip.ts b/src/lib/tooltip/tooltip.ts
index c14536da593d..e8ff8eaec926 100644
--- a/src/lib/tooltip/tooltip.ts
+++ b/src/lib/tooltip/tooltip.ts
@@ -58,10 +58,15 @@ export class MdTooltip {
/** Allows the user to define the position of the tooltip relative to the parent element */
private _position: TooltipPosition = 'below';
- @Input('tooltip-position') get position(): TooltipPosition {
+ @Input('tooltipPosition') get position(): TooltipPosition {
return this._position;
}
+ /** @deprecated */
+ @Input('tooltip-position')
+ get _positionDeprecated(): TooltipPosition { return this._position; }
+ set _positionDeprecated(value: TooltipPosition) { this._position = value; }
+
set position(value: TooltipPosition) {
if (value !== this._position) {
this._position = value;
From ec5cbb1af8f1799d4b3266a77c11599b1d92bd21 Mon Sep 17 00:00:00 2001
From: crisbeto
Date: Fri, 16 Dec 2016 21:46:14 +0100
Subject: [PATCH 2/8] Fix tabs CSS issue and switch mdDynamicHeight to
dynamicHeight.
---
src/lib/tabs/tab-group.scss | 8 ++++----
src/lib/tabs/tab-group.ts | 5 ++++-
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/src/lib/tabs/tab-group.scss b/src/lib/tabs/tab-group.scss
index ed3c66f93582..0cc31e4050b6 100644
--- a/src/lib/tabs/tab-group.scss
+++ b/src/lib/tabs/tab-group.scss
@@ -38,6 +38,7 @@ md-tab-body {
@include md-fill;
display: block;
overflow: hidden;
+
&.md-tab-body-active {
position: relative;
overflow-x: hidden;
@@ -45,10 +46,9 @@ md-tab-body {
z-index: 1;
flex-grow: 1;
}
- :host[mdDynamicHeight], :host[md-dynamic-height] {
- &.md-tab-body-active {
- overflow-y: hidden;
- }
+
+ :host.md-tab-group-dynamic-height &.md-tab-body-active {
+ overflow-y: hidden;
}
}
diff --git a/src/lib/tabs/tab-group.ts b/src/lib/tabs/tab-group.ts
index a33d6814236c..7568946d18bd 100644
--- a/src/lib/tabs/tab-group.ts
+++ b/src/lib/tabs/tab-group.ts
@@ -48,6 +48,9 @@ export class MdTabChangeEvent {
selector: 'md-tab-group',
templateUrl: 'tab-group.html',
styleUrls: ['tab-group.css'],
+ host: {
+ '[class.md-tab-group-dynamic-height]': '_dynamicHeight'
+ }
})
export class MdTabGroup {
@ContentChildren(MdTab) _tabs: QueryList;
@@ -65,7 +68,7 @@ export class MdTabGroup {
/** Whether the tab group should grow to the size of the active tab */
private _dynamicHeight: boolean = false;
- @Input('mdDynamicHeight') set dynamicHeight(value: boolean) {
+ @Input() set dynamicHeight(value: boolean) {
this._dynamicHeight = coerceBooleanProperty(value);
}
From 1d4dceb367d9c7d0e2e18ab89ded69d863a5645b Mon Sep 17 00:00:00 2001
From: crisbeto
Date: Fri, 16 Dec 2016 22:03:24 +0100
Subject: [PATCH 3/8] Rename [md-tooltip] to [mdTooltip].
---
src/demo-app/tabs/tabs-demo.html | 6 ++----
src/demo-app/tooltip/tooltip-demo.html | 8 ++++----
src/lib/tooltip/README.md | 8 ++++----
src/lib/tooltip/tooltip.spec.ts | 4 ++--
src/lib/tooltip/tooltip.ts | 10 +++++-----
5 files changed, 17 insertions(+), 19 deletions(-)
diff --git a/src/demo-app/tabs/tabs-demo.html b/src/demo-app/tabs/tabs-demo.html
index 7366de72e4fd..26f9455ab1a1 100644
--- a/src/demo-app/tabs/tabs-demo.html
+++ b/src/demo-app/tabs/tabs-demo.html
@@ -42,9 +42,7 @@
- ABOVE
+ ABOVEItem
-
+
BOTH
diff --git a/src/lib/menu/README.md b/src/lib/menu/README.md
index b3fe5cef0b6c..f6d8f210395e 100644
--- a/src/lib/menu/README.md
+++ b/src/lib/menu/README.md
@@ -1,6 +1,6 @@
# md-menu
-`md-menu` is a list of options that displays when triggered. You can read more about menus in the
+`md-menu` is a list of options that displays when triggered. You can read more about menus in the
[Material Design spec](https://material.google.com/components/menus.html).
### Not yet implemented
@@ -13,8 +13,8 @@
### Simple menu
-In your template, create an `md-menu` element. You can use either `` or `` tags for
-your menu items, as long as each is tagged with an `md-menu-item` attribute. Note that you can
+In your template, create an `md-menu` element. You can use either `` or `` tags for
+your menu items, as long as each is tagged with an `md-menu-item` attribute. Note that you can
disable items by adding the `disabled` boolean attribute or binding to it.
*my-comp.html*
@@ -28,15 +28,15 @@ disable items by adding the `disabled` boolean attribute or binding to it.
```
-Menus are hidden by default, so you'll want to connect up a menu trigger that can open your menu.
-You can do so by adding a button tag with an `md-menu-trigger-for` attribute and passing in the menu
-instance. You can create a local reference to your menu instance by adding `#menu="mdMenu"` to
+Menus are hidden by default, so you'll want to connect up a menu trigger that can open your menu.
+You can do so by adding a button tag with an `mdMenuTriggerFor` attribute and passing in the menu
+instance. You can create a local reference to your menu instance by adding `#menu="mdMenu"` to
your menu element.
*my-comp.html*
```html
-
+more_vert
@@ -55,10 +55,10 @@ Output:
### Toggling the menu programmatically
-You can also use the menu's API to open or close the menu programmatically from your class. Please
-note that in this case, an `md-menu-trigger-for` attribute is still necessary to connect
+You can also use the menu's API to open or close the menu programmatically from your class. Please
+note that in this case, an `mdMenuTriggerFor` attribute is still necessary to connect
the menu to its trigger element in the DOM.
-
+
*my-comp.component.ts*
```ts
class MyComp {
@@ -72,7 +72,7 @@ class MyComp {
*my-comp.html*
```html
-
+more_vert
@@ -91,15 +91,15 @@ Menus also support displaying `md-icon` elements before the menu item text.
*my-comp.html*
```html
-
+ dialpad Redial
-
+ voicemail Check voicemail
-
+ notifications_off Disable alerts
@@ -114,8 +114,8 @@ Output:
### Customizing menu position
-By default, the menu will display after and below its trigger. You can change this display position
-using the `x-position` (`before | after`) and `y-position` (`above | below`) attributes.
+By default, the menu will display after and below its trigger. You can change this display position
+using the `x-position` (`before | after`) and `y-position` (`above | below`) attributes.
*my-comp.html*
```html
@@ -134,7 +134,7 @@ Output:
### Accessibility
-The menu adds `role="menu"` to the main menu element and `role="menuitem"` to each menu item. It
+The menu adds `role="menu"` to the main menu element and `role="menuitem"` to each menu item. It
also adds `aria-hasPopup="true"` to the trigger element.
#### Keyboard events:
@@ -146,18 +146,18 @@ also adds `aria-hasPopup="true"` to the trigger element.
| Signature | Values | Description |
| --- | --- | --- |
-| `x-position` | `before | after` | The horizontal position of the menu in relation to the trigger. Defaults to `after`. |
+| `x-position` | `before | after` | The horizontal position of the menu in relation to the trigger. Defaults to `after`. |
| `y-position` | `above | below` | The vertical position of the menu in relation to the trigger. Defaults to `below`. |
-
+
### Trigger Programmatic API
**Properties**
| Name | Type | Description |
| --- | --- | --- |
-| `menuOpen` | `Boolean` | Property that is true when the menu is open. It is not settable (use methods below). |
-| `onMenuOpen` | `Observable` | Observable that emits when the menu opens. |
-| `onMenuClose` | `Observable` | Observable that emits when the menu closes. |
+| `menuOpen` | `Boolean` | Property that is true when the menu is open. It is not settable (use methods below). |
+| `onMenuOpen` | `Observable` | Observable that emits when the menu opens. |
+| `onMenuClose` | `Observable` | Observable that emits when the menu closes. |
**Methods**
@@ -165,7 +165,7 @@ also adds `aria-hasPopup="true"` to the trigger element.
| --- | --- | --- |
| `openMenu()` | `Promise` | Opens the menu. Returns a promise that will resolve when the menu has opened. |
| `closeMenu()` | `Promise` | Closes the menu. Returns a promise that will resolve when the menu has closed. |
-| `toggleMenu()` | `Promise` | Toggles the menu. Returns a promise that will resolve when the menu has completed opening or closing. |
-| `destroyMenu()` | `Promise` | Destroys the menu overlay completely.
-
+| `toggleMenu()` | `Promise` | Toggles the menu. Returns a promise that will resolve when the menu has completed opening or closing. |
+| `destroyMenu()` | `Promise` | Destroys the menu overlay completely.
+
diff --git a/src/lib/menu/menu-errors.ts b/src/lib/menu/menu-errors.ts
index ae634699a661..069dfabd5333 100644
--- a/src/lib/menu/menu-errors.ts
+++ b/src/lib/menu/menu-errors.ts
@@ -10,7 +10,7 @@ export class MdMenuMissingError extends MdError {
Example:
-
+
`);
}
}
diff --git a/src/lib/menu/menu-trigger.ts b/src/lib/menu/menu-trigger.ts
index cece81c27e69..a61952960827 100644
--- a/src/lib/menu/menu-trigger.ts
+++ b/src/lib/menu/menu-trigger.ts
@@ -32,7 +32,7 @@ import {MenuPositionX, MenuPositionY} from './menu-positions';
* responsible for toggling the display of the provided menu instance.
*/
@Directive({
- selector: '[md-menu-trigger-for], [mat-menu-trigger-for]',
+ selector: '[md-menu-trigger-for], [mat-menu-trigger-for], [mdMenuTriggerFor]',
host: {
'aria-haspopup': 'true',
'(mousedown)': '_handleMousedown($event)',
@@ -51,7 +51,7 @@ export class MdMenuTrigger implements AfterViewInit, OnDestroy {
// the first item of the list when the menu is opened via the keyboard
private _openedByMouse: boolean = false;
- @Input('md-menu-trigger-for') menu: MdMenuPanel;
+ @Input('mdMenuTriggerFor') menu: MdMenuPanel;
@Output() onMenuOpen = new EventEmitter();
@Output() onMenuClose = new EventEmitter();
@@ -157,7 +157,7 @@ export class MdMenuTrigger implements AfterViewInit, OnDestroy {
/**
* This method checks that a valid instance of MdMenu has been passed into
- * md-menu-trigger-for. If not, an exception is thrown.
+ * mdMenuTriggerFor. If not, an exception is thrown.
*/
private _checkMenu() {
if (!this.menu) {
diff --git a/src/lib/menu/menu.spec.ts b/src/lib/menu/menu.spec.ts
index 091de361bc90..a4e82efacc74 100644
--- a/src/lib/menu/menu.spec.ts
+++ b/src/lib/menu/menu.spec.ts
@@ -284,7 +284,7 @@ describe('MdMenu', () => {
@Component({
template: `
- Toggle menu
+ Toggle menu Item Disabled
@@ -298,7 +298,7 @@ class SimpleMenu {
@Component({
template: `
- Toggle menu
+ Toggle menu Positioned Content
@@ -332,7 +332,7 @@ class CustomMenuPanel implements MdMenuPanel {
@Component({
template: `
- Toggle menu
+ Toggle menu Custom Content
From fb5abcd81e6478e9178dae1ede4fc9a37e3107d1 Mon Sep 17 00:00:00 2001
From: crisbeto
Date: Sat, 17 Dec 2016 01:03:10 +0100
Subject: [PATCH 5/8] Use public property for dynamic height binding.
---
src/lib/tabs/tab-group.ts | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/lib/tabs/tab-group.ts b/src/lib/tabs/tab-group.ts
index 7568946d18bd..91f919b4450d 100644
--- a/src/lib/tabs/tab-group.ts
+++ b/src/lib/tabs/tab-group.ts
@@ -48,9 +48,7 @@ export class MdTabChangeEvent {
selector: 'md-tab-group',
templateUrl: 'tab-group.html',
styleUrls: ['tab-group.css'],
- host: {
- '[class.md-tab-group-dynamic-height]': '_dynamicHeight'
- }
+ host: { '[class.md-tab-group-dynamic-height]': 'dynamicHeight' }
})
export class MdTabGroup {
@ContentChildren(MdTab) _tabs: QueryList;
@@ -68,9 +66,9 @@ export class MdTabGroup {
/** Whether the tab group should grow to the size of the active tab */
private _dynamicHeight: boolean = false;
- @Input() set dynamicHeight(value: boolean) {
- this._dynamicHeight = coerceBooleanProperty(value);
- }
+ @Input()
+ get dynamicHeight(): boolean { return this._dynamicHeight; }
+ set dynamicHeight(value: boolean) { this._dynamicHeight = coerceBooleanProperty(value); }
/** @deprecated */
@Input('md-dynamic-height')
From 71d29056bfa21b2e4d323573911b92028907524d Mon Sep 17 00:00:00 2001
From: crisbeto
Date: Sat, 17 Dec 2016 01:08:47 +0100
Subject: [PATCH 6/8] Proper method name.
---
src/lib/button/button.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/button/button.html b/src/lib/button/button.html
index 486fe19e07b5..3c307dfd2c91 100644
--- a/src/lib/button/button.html
+++ b/src/lib/button/button.html
@@ -1,7 +1,7 @@
From 3e2c3e31d6ebcfb62c07e9b9474c165639075deb Mon Sep 17 00:00:00 2001
From: crisbeto
Date: Sat, 17 Dec 2016 01:12:28 +0100
Subject: [PATCH 7/8] Fix isRoundButton naming.
---
src/lib/button/button.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/button/button.html b/src/lib/button/button.html
index 3c307dfd2c91..a182e2ebc366 100644
--- a/src/lib/button/button.html
+++ b/src/lib/button/button.html
@@ -2,7 +2,7 @@
From 8bbcf479d84507885dc2f90916a2232f3b0dd23b Mon Sep 17 00:00:00 2001
From: Jeremy Elbourn
Date: Fri, 16 Dec 2016 17:08:22 -0800
Subject: [PATCH 8/8] make menu-trigger and md-tooltip backwards compatible
---
src/lib/menu/menu-trigger.ts | 5 +++++
src/lib/tooltip/tooltip.ts | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/src/lib/menu/menu-trigger.ts b/src/lib/menu/menu-trigger.ts
index a61952960827..0243aa248f1b 100644
--- a/src/lib/menu/menu-trigger.ts
+++ b/src/lib/menu/menu-trigger.ts
@@ -51,6 +51,11 @@ export class MdMenuTrigger implements AfterViewInit, OnDestroy {
// the first item of the list when the menu is opened via the keyboard
private _openedByMouse: boolean = false;
+ /** @deprecated */
+ @Input('md-menu-trigger-for')
+ get _deprecatedMenuTriggerFor(): MdMenuPanel { return this.menu; }
+ set _deprecatedMenuTriggerFor(v: MdMenuPanel) { this.menu = v; }
+
@Input('mdMenuTriggerFor') menu: MdMenuPanel;
@Output() onMenuOpen = new EventEmitter();
@Output() onMenuClose = new EventEmitter();
diff --git a/src/lib/tooltip/tooltip.ts b/src/lib/tooltip/tooltip.ts
index be423da68049..b8c1f9e003bd 100644
--- a/src/lib/tooltip/tooltip.ts
+++ b/src/lib/tooltip/tooltip.ts
@@ -97,6 +97,11 @@ export class MdTooltip {
}
}
+ /** @deprecated */
+ @Input('md-tooltip')
+ get _deprecatedMessage(): string { return this.message; }
+ set _deprecatedMessage(v: string) { this.message = v; }
+
constructor(private _overlay: Overlay, private _elementRef: ElementRef,
private _viewContainerRef: ViewContainerRef, private _ngZone: NgZone,
@Optional() private _dir: Dir) {}