diff --git a/CODING_STANDARDS.md b/CODING_STANDARDS.md
index aff6f30f3c25..b9cde2891ae0 100644
--- a/CODING_STANDARDS.md
+++ b/CODING_STANDARDS.md
@@ -49,16 +49,16 @@ In HTML code, use `` comments, which will be stripped when packaging
For example, rather than doing this:
```html
-Basic button
-FAB
-pony
+Basic button
+FAB
+pony
```
do this:
```html
-Basic button
-FAB
-pony
+Basic button
+FAB
+pony
```
#### Prefer small, focused modules
@@ -191,7 +191,7 @@ and the return value:
* @param config Dialog configuration options.
* @returns Reference to the newly-opened dialog.
*/
- open(component: ComponentType, config?: MdDialogConfig): MdDialogRef { ... }
+ open(component: ComponentType, config?: MatDialogConfig): MatDialogRef { ... }
```
Boolean properties and return values should use "Whether..." as opposed to "True if...":
@@ -229,7 +229,7 @@ class UniqueSelectionDispatcher { }
Avoid suffixing a class with "Service", as it communicates nothing about what the class does. Try to
think of the class name as a person's job title.
-Classes that correspond to a directive with an `md-` prefix should also be prefixed with `Md`.
+Classes that correspond to a directive with an `mat-` prefix should also be prefixed with `Mat`.
CDK classes should only have a `Cdk` prefix when the class is a directive with a `cdk` selector
prefix.
diff --git a/e2e/components/button-toggle-e2e.spec.ts b/e2e/components/button-toggle-e2e.spec.ts
index 8f8b1b3e60c0..b302ee63b556 100644
--- a/e2e/components/button-toggle-e2e.spec.ts
+++ b/e2e/components/button-toggle-e2e.spec.ts
@@ -6,7 +6,7 @@ describe('button-toggle', () => {
beforeEach(() => browser.get('/button-toggle'));
it('should show a button-toggle', async () => {
- expect(element(by.tagName('md-button-toggle'))).toBeDefined();
+ expect(element(by.tagName('mat-button-toggle'))).toBeDefined();
screenshot();
});
diff --git a/e2e/components/card-e2e.spec.ts b/e2e/components/card-e2e.spec.ts
index aac7d38abd39..14f0cd6e3b6b 100644
--- a/e2e/components/card-e2e.spec.ts
+++ b/e2e/components/card-e2e.spec.ts
@@ -1,12 +1,12 @@
import {browser, by, element} from 'protractor';
import {screenshot} from '../screenshot';
-describe('md-card', () => {
+describe('mat-card', () => {
beforeEach(() => browser.get('/cards'));
it('should show a card', async () => {
- const card = element(by.tagName('md-card'));
+ const card = element(by.tagName('mat-card'));
expect(card).toBeDefined();
screenshot('fancy card example');
diff --git a/e2e/components/dialog-e2e.spec.ts b/e2e/components/dialog-e2e.spec.ts
index d3887c7e0649..b5a9b3ab0a45 100644
--- a/e2e/components/dialog-e2e.spec.ts
+++ b/e2e/components/dialog-e2e.spec.ts
@@ -14,7 +14,7 @@ describe('dialog', () => {
it('should open a dialog', () => {
element(by.id('default')).click();
- expectToExist('md-dialog-container');
+ expectToExist('mat-dialog-container');
screenshot('simple dialog opened');
});
@@ -29,7 +29,7 @@ describe('dialog', () => {
await waitForDialog();
clickOnBackrop();
- expectToExist('md-dialog-container', false);
+ expectToExist('mat-dialog-container', false);
});
it('should close by pressing escape', async () => {
@@ -37,7 +37,7 @@ describe('dialog', () => {
await waitForDialog();
pressKeys(Key.ESCAPE);
- expectToExist('md-dialog-container', false);
+ expectToExist('mat-dialog-container', false);
});
it('should close by pressing escape when the first tabbable element has lost focus',
@@ -45,9 +45,9 @@ describe('dialog', () => {
element(by.id('default')).click();
await waitForDialog();
- clickElementAtPoint('md-dialog-container', { x: 0, y: 0 });
+ clickElementAtPoint('mat-dialog-container', { x: 0, y: 0 });
pressKeys(Key.ESCAPE);
- expectToExist('md-dialog-container', false);
+ expectToExist('mat-dialog-container', false);
});
it('should close by clicking on the "close" button', async () => {
@@ -55,14 +55,14 @@ describe('dialog', () => {
await waitForDialog();
element(by.id('close')).click();
- expectToExist('md-dialog-container', false);
+ expectToExist('mat-dialog-container', false);
});
it('should focus the first focusable element', async () => {
element(by.id('default')).click();
await waitForDialog();
- expectFocusOn('md-dialog-container input');
+ expectFocusOn('mat-dialog-container input');
});
it('should restore focus to the element that opened the dialog', async () => {
@@ -88,7 +88,7 @@ describe('dialog', () => {
await waitForDialog();
clickOnBackrop();
- expectToExist('md-dialog-container');
+ expectToExist('mat-dialog-container');
});
it('should be able to prevent closing by pressing escape', async () => {
@@ -96,11 +96,11 @@ describe('dialog', () => {
await waitForDialog();
pressKeys(Key.ESCAPE);
- expectToExist('md-dialog-container');
+ expectToExist('mat-dialog-container');
});
function waitForDialog() {
- return waitForElement('md-dialog-container');
+ return waitForElement('mat-dialog-container');
}
function clickOnBackrop() {
diff --git a/e2e/components/grid-list-e2e.spec.ts b/e2e/components/grid-list-e2e.spec.ts
index a70c8176c8ee..d4f0858099fa 100644
--- a/e2e/components/grid-list-e2e.spec.ts
+++ b/e2e/components/grid-list-e2e.spec.ts
@@ -6,11 +6,11 @@ describe('grid-list', () => {
beforeEach(() => browser.get('/grid-list'));
it('should render a grid list container', () => {
- expectToExist('md-grid-list');
+ expectToExist('mat-grid-list');
screenshot();
});
it('should render list items inside the grid list container', () => {
- expectToExist('md-grid-list md-grid-tile');
+ expectToExist('mat-grid-list mat-grid-tile');
});
});
diff --git a/e2e/components/list-e2e.spec.ts b/e2e/components/list-e2e.spec.ts
index bdb541373d8f..e0016fd6fa4b 100644
--- a/e2e/components/list-e2e.spec.ts
+++ b/e2e/components/list-e2e.spec.ts
@@ -6,11 +6,11 @@ describe('list', () => {
beforeEach(() => browser.get('/list'));
it('should render a list container', () => {
- expectToExist('md-list');
+ expectToExist('mat-list');
screenshot();
});
it('should render list items inside the list container', () => {
- expectToExist('md-list md-list-item');
+ expectToExist('mat-list mat-list-item');
});
});
diff --git a/e2e/components/menu-e2e.spec.ts b/e2e/components/menu-e2e.spec.ts
index f9e442180c1a..f1b3a3dec680 100644
--- a/e2e/components/menu-e2e.spec.ts
+++ b/e2e/components/menu-e2e.spec.ts
@@ -207,7 +207,7 @@ export class MenuPage {
trigger = () => element(by.id('trigger'));
triggerTwo = () => element(by.id('trigger-two'));
backdrop = () => element(by.css('.cdk-overlay-backdrop'));
- items = (index: number) => element.all(by.css('[md-menu-item]')).get(index);
+ items = (index: number) => element.all(by.css('[mat-menu-item]')).get(index);
textArea = () => element(by.id('text'));
beforeTrigger = () => element(by.id('before-t'));
aboveTrigger = () => element(by.id('above-t'));
diff --git a/e2e/components/progress-bar-e2e.spec.ts b/e2e/components/progress-bar-e2e.spec.ts
index aa62334f7235..3bf454764820 100644
--- a/e2e/components/progress-bar-e2e.spec.ts
+++ b/e2e/components/progress-bar-e2e.spec.ts
@@ -5,18 +5,18 @@ describe('progress-bar', () => {
beforeEach(() => browser.get('/progress-bar'));
it('should render a determinate progress bar', () => {
- expectToExist('md-progress-bar[mode="determinate"]');
+ expectToExist('mat-progress-bar[mode="determinate"]');
});
it('should render a buffer progress bar', () => {
- expectToExist('md-progress-bar[mode="buffer"]');
+ expectToExist('mat-progress-bar[mode="buffer"]');
});
it('should render a query progress bar', () => {
- expectToExist('md-progress-bar[mode="query"]');
+ expectToExist('mat-progress-bar[mode="query"]');
});
it('should render a indeterminate progress bar', () => {
- expectToExist('md-progress-bar[mode="indeterminate"]');
+ expectToExist('mat-progress-bar[mode="indeterminate"]');
});
});
diff --git a/e2e/components/progress-spinner-e2e.spec.ts b/e2e/components/progress-spinner-e2e.spec.ts
index a8e5238cb9ae..c415636ef8db 100644
--- a/e2e/components/progress-spinner-e2e.spec.ts
+++ b/e2e/components/progress-spinner-e2e.spec.ts
@@ -4,14 +4,14 @@ describe('progress-spinner', () => {
beforeEach(() => browser.get('/progress-spinner'));
it('should render a determinate progress spinner', () => {
- expect(element(by.css('md-progress-spinner')).isPresent()).toBe(true);
+ expect(element(by.css('mat-progress-spinner')).isPresent()).toBe(true);
});
it('should render an indeterminate progress spinner', () => {
- expect(element(by.css('md-progress-spinner[mode="indeterminate"]')).isPresent()).toBe(true);
+ expect(element(by.css('mat-progress-spinner[mode="indeterminate"]')).isPresent()).toBe(true);
});
it('should render a spinner', () => {
- expect(element(by.css('md-spinner')).isPresent()).toBe(true);
+ expect(element(by.css('mat-spinner')).isPresent()).toBe(true);
});
});
diff --git a/e2e/components/sidenav-e2e.spec.ts b/e2e/components/sidenav-e2e.spec.ts
index 445d8bf63b76..9f90e4403652 100644
--- a/e2e/components/sidenav-e2e.spec.ts
+++ b/e2e/components/sidenav-e2e.spec.ts
@@ -6,7 +6,7 @@ describe('sidenav', () => {
beforeEach(() => {
browser.get('/sidenav');
- sidenav = element(by.tagName('md-sidenav'));
+ sidenav = element(by.tagName('mat-sidenav'));
});
it('should be closed', () => {
diff --git a/e2e/components/slide-toggle-e2e.spec.ts b/e2e/components/slide-toggle-e2e.spec.ts
index 2780cb91a008..a8c232d06d54 100644
--- a/e2e/components/slide-toggle-e2e.spec.ts
+++ b/e2e/components/slide-toggle-e2e.spec.ts
@@ -10,7 +10,7 @@ describe('slide-toggle', () => {
beforeEach(() => browser.get('slide-toggle'));
it('should render a slide-toggle', () => {
- expectToExist('md-slide-toggle');
+ expectToExist('mat-slide-toggle');
screenshot();
});
diff --git a/e2e/components/stepper-e2e.spec.ts b/e2e/components/stepper-e2e.spec.ts
index cd9b4b3d8211..d4745dcbde0d 100644
--- a/e2e/components/stepper-e2e.spec.ts
+++ b/e2e/components/stepper-e2e.spec.ts
@@ -10,8 +10,8 @@ describe('stepper', () => {
beforeEach(() => browser.get('/stepper'));
it('should render a stepper', () => {
- expectToExist('md-horizontal-stepper');
- screenshot('md-horizontal-stepper');
+ expectToExist('mat-horizontal-stepper');
+ screenshot('mat-horizontal-stepper');
});
describe('basic behavior', () => {
@@ -19,13 +19,13 @@ describe('stepper', () => {
const previousButton = element.all(by.buttonText('Back'));
const nextButton = element.all(by.buttonText('Next'));
- expect(element(by.css('md-step-header[aria-selected="true"]')).getText())
+ expect(element(by.css('mat-step-header[aria-selected="true"]')).getText())
.toBe('1\nFill out your name');
screenshot('start');
nextButton.get(0).click();
- expect(element(by.css('md-step-header[aria-selected="true"]')).getText())
+ expect(element(by.css('mat-step-header[aria-selected="true"]')).getText())
.toBe('2\nFill out your address');
await browser.wait(ExpectedConditions.not(
@@ -34,7 +34,7 @@ describe('stepper', () => {
previousButton.get(0).click();
- expect(element(by.css('md-step-header[aria-selected="true"]')).getText())
+ expect(element(by.css('mat-step-header[aria-selected="true"]')).getText())
.toBe('1\nFill out your name');
await browser.wait(ExpectedConditions.not(
@@ -43,7 +43,7 @@ describe('stepper', () => {
});
it('should change focus with keyboard interaction', () => {
- let stepHeaders = element.all(by.css('md-step-header'));
+ let stepHeaders = element.all(by.css('mat-step-header'));
stepHeaders.get(0).click();
expectFocusOn(stepHeaders.get(0));
@@ -77,7 +77,7 @@ describe('stepper', () => {
let nextButton = element.all(by.buttonText('Next'));
nextButton.get(0).click();
- expect(element(by.css('md-step-header[aria-selected="true"]')).getText())
+ expect(element(by.css('mat-step-header[aria-selected="true"]')).getText())
.toBe('1\nFill out your name');
});
});
diff --git a/e2e/components/tabs-e2e.spec.ts b/e2e/components/tabs-e2e.spec.ts
index a2df986deed6..8fc2971b85d5 100644
--- a/e2e/components/tabs-e2e.spec.ts
+++ b/e2e/components/tabs-e2e.spec.ts
@@ -19,9 +19,9 @@ describe('tabs', () => {
beforeEach(() => {
browser.get('/tabs');
- tabGroup = element(by.css('md-tab-group'));
+ tabGroup = element(by.css('mat-tab-group'));
tabLabels = element.all(by.css('.mat-tab-label'));
- tabBodies = element.all(by.css('md-tab-body'));
+ tabBodies = element.all(by.css('mat-tab-body'));
});
it('should change tabs when the label is clicked', async () => {
diff --git a/e2e/components/toolbar-e2e.spec.ts b/e2e/components/toolbar-e2e.spec.ts
index 6b03e4abcb56..eaabb2c36aaa 100644
--- a/e2e/components/toolbar-e2e.spec.ts
+++ b/e2e/components/toolbar-e2e.spec.ts
@@ -1,12 +1,12 @@
import {browser, by, element} from 'protractor';
import {screenshot} from '../screenshot';
-describe('md-toolbar', () => {
+describe('mat-toolbar', () => {
beforeEach(() => browser.get('/toolbar'));
it('should show a toolbar', async () => {
- expect(element(by.tagName('md-toolbar'))).toBeDefined();
+ expect(element(by.tagName('mat-toolbar'))).toBeDefined();
screenshot('multiple toolbar components');
});
diff --git a/guides/cdk-table.md b/guides/cdk-table.md
index 08a7027b3bfd..365ac59234c7 100644
--- a/guides/cdk-table.md
+++ b/guides/cdk-table.md
@@ -7,7 +7,7 @@ built. Because it enforces no opinions on these matters, developers have full co
interaction patterns associated with the table.
For a Material Design styled table, see the
-[documentation for ``](https://material.angular.io/components/table) which builds on
+[documentation for ``](https://material.angular.io/components/table) which builds on
top of the CDK data-table.
diff --git a/guides/customizing-component-styles.md b/guides/customizing-component-styles.md
index a5db1a459e51..5a3a641578ac 100644
--- a/guides/customizing-component-styles.md
+++ b/guides/customizing-component-styles.md
@@ -30,7 +30,7 @@ You can read more about specificity and how it is calculated on the
##### Component location
-Some Angular Material components, specifically overlay-based ones like MdDialog, MdSnackbar, etc.,
+Some Angular Material components, specifically overlay-based ones like MatDialog, MatSnackbar, etc.,
do not exist as children of your component. Often they are injected elsewhere in the DOM. This is
important to keep in mind, since even using high specificity and shadow-piercing selectors will
not target elements that are not direct children of your component. Global styles are recommended
diff --git a/guides/getting-started.md b/guides/getting-started.md
index d7d28ba9b550..21d9d8172e97 100644
--- a/guides/getting-started.md
+++ b/guides/getting-started.md
@@ -55,11 +55,11 @@ export class PizzaPartyAppModule { }
Import the NgModule for each component you want to use:
```ts
-import {MdButtonModule, MdCheckboxModule} from '@angular/material';
+import {MatButtonModule, MatCheckboxModule} from '@angular/material';
@NgModule({
...
- imports: [MdButtonModule, MdCheckboxModule],
+ imports: [MatButtonModule, MatCheckboxModule],
...
})
export class PizzaPartyAppModule { }
@@ -70,11 +70,11 @@ Angular Material components that you will use in your application. You can then
include this module wherever you'd like to use the components.
```ts
-import {MdButtonModule, MdCheckboxModule} from '@angular/material';
+import {MatButtonModule, MatCheckboxModule} from '@angular/material';
@NgModule({
- imports: [MdButtonModule, MdCheckboxModule],
- exports: [MdButtonModule, MdCheckboxModule],
+ imports: [MatButtonModule, MatCheckboxModule],
+ exports: [MatButtonModule, MatCheckboxModule],
})
export class MyOwnCustomMaterialModule { }
```
@@ -100,7 +100,7 @@ For more information on theming and instructions on how to create a custom theme
### Step 5: Gesture Support
-Some components (`md-slide-toggle`, `md-slider`, `mdTooltip`) rely on
+Some components (`mat-slide-toggle`, `mat-slider`, `matTooltip`) rely on
[HammerJS](http://hammerjs.github.io/) for gestures. In order to get the full feature-set of these
components, HammerJS must be loaded into the application.
@@ -120,7 +120,7 @@ import 'hammerjs';
### Step 6 (Optional): Add Material Icons
-If you want to use the `md-icon` component with the official
+If you want to use the `mat-icon` component with the official
[Material Design Icons](https://material.io/icons/), load the icon font in your `index.html`.
```html
@@ -130,7 +130,7 @@ If you want to use the `md-icon` component with the official
For more information on using Material Icons, check out the
[Material Icons Guide](https://google.github.io/material-design-icons/).
-Note that `md-icon` supports any font or svg icons; using Material Icons is one of many options.
+Note that `mat-icon` supports any font or svg icons; using Material Icons is one of many options.
### Appendix: Configuring SystemJS
diff --git a/guides/theming.md b/guides/theming.md
index 22a103bd0380..aca2e50fc65c 100644
--- a/guides/theming.md
+++ b/guides/theming.md
@@ -46,7 +46,7 @@ The actual path will depend on your server setup.
You can also concatenate the file with the rest of your application's css.
-Finally, if your app's content **is not** placed inside of a `md-sidenav-container` element, you
+Finally, if your app's content **is not** placed inside of a `mat-sidenav-container` element, you
need to add the `mat-app-background` class to your wrapper element (for example the `body`). This
ensures that the proper theme background is applied to your page.
diff --git a/package-lock.json b/package-lock.json
index 6cf8c6caee81..064d1fcfb498 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -5247,7 +5247,7 @@
"glob": {
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz",
- "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==",
+ "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=",
"dev": true,
"requires": {
"fs.realpath": "1.0.0",
@@ -15735,7 +15735,7 @@
"write-file-atomic": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-2.1.0.tgz",
- "integrity": "sha512-0TZ20a+xcIl4u0+Mj5xDH2yOWdmQiXlKf9Hm+TgDXjTMsEYb+gDrmb8e8UNAzMCitX8NBqG4Z/FUQIyzv/R1JQ==",
+ "integrity": "sha1-F2n0tVHu3OQZ8FBd6uLiZ2NULTc=",
"dev": true,
"requires": {
"graceful-fs": "4.1.11",
diff --git a/src/cdk/a11y/interactivity-checker.spec.ts b/src/cdk/a11y/interactivity-checker.spec.ts
index 23473eb5ded6..e5fcdc61950d 100644
--- a/src/cdk/a11y/interactivity-checker.spec.ts
+++ b/src/cdk/a11y/interactivity-checker.spec.ts
@@ -21,7 +21,7 @@ describe('InteractivityChecker', () => {
describe('isDisabled', () => {
it('should return true for disabled elements', () => {
- let elements = createElements('input', 'textarea', 'select', 'button', 'md-checkbox');
+ let elements = createElements('input', 'textarea', 'select', 'button', 'mat-checkbox');
elements.forEach(el => el.setAttribute('disabled', ''));
appendElements(elements);
@@ -32,7 +32,7 @@ describe('InteractivityChecker', () => {
});
it('should return false for elements without disabled', () => {
- let elements = createElements('input', 'textarea', 'select', 'button', 'md-checkbox');
+ let elements = createElements('input', 'textarea', 'select', 'button', 'mat-checkbox');
appendElements(elements);
elements.forEach(el => {
diff --git a/src/cdk/bidi/directionality.ts b/src/cdk/bidi/directionality.ts
index 76c6985aa61c..c04962b3c85d 100644
--- a/src/cdk/bidi/directionality.ts
+++ b/src/cdk/bidi/directionality.ts
@@ -29,7 +29,7 @@ export type Direction = 'ltr' | 'rtl';
* We also can't re-provide the DOCUMENT token from platform-brower because the unit tests
* themselves use things like `querySelector` in test code.
*/
-export const DIR_DOCUMENT = new InjectionToken('md-dir-doc');
+export const DIR_DOCUMENT = new InjectionToken('mat-dir-doc');
/**
* The directionality (LTR / RTL) context for the application (or a subtree of it).
diff --git a/src/cdk/collections/selection.ts b/src/cdk/collections/selection.ts
index b2c199cfc9ef..c249544d4a33 100644
--- a/src/cdk/collections/selection.ts
+++ b/src/cdk/collections/selection.ts
@@ -165,7 +165,7 @@ export class SelectionModel {
}
/**
- * Describes an event emitted when the value of a MdSelectionModel has changed.
+ * Describes an event emitted when the value of a MatSelectionModel has changed.
* @docs-private
*/
export class SelectionChange {
diff --git a/src/cdk/observers/observe-content.spec.ts b/src/cdk/observers/observe-content.spec.ts
index 4f05369ea9c3..99e655470843 100644
--- a/src/cdk/observers/observe-content.spec.ts
+++ b/src/cdk/observers/observe-content.spec.ts
@@ -1,6 +1,6 @@
import {Component} from '@angular/core';
import {async, TestBed, ComponentFixture, fakeAsync, tick} from '@angular/core/testing';
-import {ObserversModule, MdMutationObserverFactory} from './observe-content';
+import {ObserversModule, MatMutationObserverFactory} from './observe-content';
// TODO(elad): `ProxyZone` doesn't seem to capture the events raised by
// `MutationObserver` and needs to be investigated
@@ -61,7 +61,7 @@ describe('Observe content', () => {
imports: [ObserversModule],
declarations: [ComponentWithDebouncedListener],
providers: [{
- provide: MdMutationObserverFactory,
+ provide: MatMutationObserverFactory,
useValue: {
create: function(callback: Function) {
callbacks.push(callback);
diff --git a/src/cdk/observers/observe-content.ts b/src/cdk/observers/observe-content.ts
index 04871646290c..c0b8dff10ecb 100644
--- a/src/cdk/observers/observe-content.ts
+++ b/src/cdk/observers/observe-content.ts
@@ -26,7 +26,7 @@ import {RxChain, debounceTime} from '@angular/cdk/rxjs';
* @docs-private
*/
@Injectable()
-export class MdMutationObserverFactory {
+export class MatMutationObserverFactory {
create(callback): MutationObserver | null {
return typeof MutationObserver === 'undefined' ? null : new MutationObserver(callback);
}
@@ -52,7 +52,7 @@ export class ObserveContent implements AfterContentInit, OnDestroy {
@Input() debounce: number;
constructor(
- private _mutationObserverFactory: MdMutationObserverFactory,
+ private _mutationObserverFactory: MatMutationObserverFactory,
private _elementRef: ElementRef,
private _ngZone: NgZone) { }
@@ -95,6 +95,6 @@ export class ObserveContent implements AfterContentInit, OnDestroy {
@NgModule({
exports: [ObserveContent],
declarations: [ObserveContent],
- providers: [MdMutationObserverFactory]
+ providers: [MatMutationObserverFactory]
})
export class ObserversModule {}
diff --git a/src/cdk/overlay/overlay-directives.ts b/src/cdk/overlay/overlay-directives.ts
index 1e1c3abcd9f1..bda7b7661274 100644
--- a/src/cdk/overlay/overlay-directives.ts
+++ b/src/cdk/overlay/overlay-directives.ts
@@ -52,20 +52,20 @@ const defaultPositionList = [
];
/** Injection token that determines the scroll handling while the connected overlay is open. */
-export const MD_CONNECTED_OVERLAY_SCROLL_STRATEGY =
- new InjectionToken<() => ScrollStrategy>('md-connected-overlay-scroll-strategy');
+export const MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY =
+ new InjectionToken<() => ScrollStrategy>('mat-connected-overlay-scroll-strategy');
/** @docs-private */
-export function MD_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay):
+export function MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY(overlay: Overlay):
() => RepositionScrollStrategy {
return () => overlay.scrollStrategies.reposition();
}
/** @docs-private */
-export const MD_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {
- provide: MD_CONNECTED_OVERLAY_SCROLL_STRATEGY,
+export const MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER = {
+ provide: MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY,
deps: [Overlay],
- useFactory: MD_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY,
+ useFactory: MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER_FACTORY,
};
@@ -236,7 +236,7 @@ export class ConnectedOverlayDirective implements OnDestroy, OnChanges {
private _renderer: Renderer2,
templateRef: TemplateRef,
viewContainerRef: ViewContainerRef,
- @Inject(MD_CONNECTED_OVERLAY_SCROLL_STRATEGY) private _scrollStrategy,
+ @Inject(MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY) private _scrollStrategy,
@Optional() private _dir: Directionality) {
this._templatePortal = new TemplatePortal(templateRef, viewContainerRef);
}
diff --git a/src/cdk/overlay/public_api.ts b/src/cdk/overlay/public_api.ts
index bc93276afde6..ec4c15d534bf 100644
--- a/src/cdk/overlay/public_api.ts
+++ b/src/cdk/overlay/public_api.ts
@@ -11,7 +11,7 @@ import {Overlay} from './overlay';
import {ScrollDispatchModule, VIEWPORT_RULER_PROVIDER} from '@angular/cdk/scrolling';
import {
ConnectedOverlayDirective,
- MD_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER,
+ MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER,
OverlayOrigin,
} from './overlay-directives';
import {OverlayPositionBuilder} from './position/overlay-position-builder';
@@ -24,7 +24,7 @@ export const OVERLAY_PROVIDERS: Provider[] = [
OverlayPositionBuilder,
VIEWPORT_RULER_PROVIDER,
OVERLAY_CONTAINER_PROVIDER,
- MD_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER,
+ MAT_CONNECTED_OVERLAY_SCROLL_STRATEGY_PROVIDER,
];
@NgModule({
diff --git a/src/cdk/overlay/scroll/close-scroll-strategy.ts b/src/cdk/overlay/scroll/close-scroll-strategy.ts
index 7f6b6bf10d73..7d445ac49953 100644
--- a/src/cdk/overlay/scroll/close-scroll-strategy.ts
+++ b/src/cdk/overlay/scroll/close-scroll-strategy.ts
@@ -6,7 +6,7 @@
* found in the LICENSE file at https://angular.io/license
*/
-import {ScrollStrategy, getMdScrollStrategyAlreadyAttachedError} from './scroll-strategy';
+import {ScrollStrategy, getMatScrollStrategyAlreadyAttachedError} from './scroll-strategy';
import {OverlayRef} from '../overlay-ref';
import {Subscription} from 'rxjs/Subscription';
import {ScrollDispatcher} from '@angular/cdk/scrolling';
@@ -23,7 +23,7 @@ export class CloseScrollStrategy implements ScrollStrategy {
attach(overlayRef: OverlayRef) {
if (this._overlayRef) {
- throw getMdScrollStrategyAlreadyAttachedError();
+ throw getMatScrollStrategyAlreadyAttachedError();
}
this._overlayRef = overlayRef;
diff --git a/src/cdk/overlay/scroll/reposition-scroll-strategy.ts b/src/cdk/overlay/scroll/reposition-scroll-strategy.ts
index 69128998b801..9ef899cf384d 100644
--- a/src/cdk/overlay/scroll/reposition-scroll-strategy.ts
+++ b/src/cdk/overlay/scroll/reposition-scroll-strategy.ts
@@ -7,7 +7,7 @@
*/
import {Subscription} from 'rxjs/Subscription';
-import {ScrollStrategy, getMdScrollStrategyAlreadyAttachedError} from './scroll-strategy';
+import {ScrollStrategy, getMatScrollStrategyAlreadyAttachedError} from './scroll-strategy';
import {OverlayRef} from '../overlay-ref';
import {ScrollDispatcher} from '@angular/cdk/scrolling';
@@ -31,7 +31,7 @@ export class RepositionScrollStrategy implements ScrollStrategy {
attach(overlayRef: OverlayRef) {
if (this._overlayRef) {
- throw getMdScrollStrategyAlreadyAttachedError();
+ throw getMatScrollStrategyAlreadyAttachedError();
}
this._overlayRef = overlayRef;
diff --git a/src/cdk/overlay/scroll/scroll-strategy.ts b/src/cdk/overlay/scroll/scroll-strategy.ts
index d9a6bf533247..fe49d67e45f3 100644
--- a/src/cdk/overlay/scroll/scroll-strategy.ts
+++ b/src/cdk/overlay/scroll/scroll-strategy.ts
@@ -21,6 +21,6 @@ export interface ScrollStrategy {
/**
* Returns an error to be thrown when attempting to attach an already-attached scroll strategy.
*/
-export function getMdScrollStrategyAlreadyAttachedError(): Error {
+export function getMatScrollStrategyAlreadyAttachedError(): Error {
return Error(`Scroll strategy has already been attached.`);
}
diff --git a/src/cdk/table/row.ts b/src/cdk/table/row.ts
index a15f379679c5..989355a209dd 100644
--- a/src/cdk/table/row.ts
+++ b/src/cdk/table/row.ts
@@ -21,7 +21,7 @@ import {
import {CdkCellDef} from './cell';
/**
- * The row template that can be used by the md-table. Should not be used outside of the
+ * The row template that can be used by the mat-table. Should not be used outside of the
* material library.
*/
export const CDK_ROW_TEMPLATE = ``;
diff --git a/src/cdk/table/table.ts b/src/cdk/table/table.ts
index e00568d29961..a76b8afed00d 100644
--- a/src/cdk/table/table.ts
+++ b/src/cdk/table/table.ts
@@ -57,7 +57,7 @@ export class HeaderRowPlaceholder {
}
/**
- * The table template that can be used by the md-table. Should not be used outside of the
+ * The table template that can be used by the mat-table. Should not be used outside of the
* material library.
*/
export const CDK_TABLE_TEMPLATE = `
diff --git a/src/demo-app/a11y/autocomplete/autocomplete-a11y.html b/src/demo-app/a11y/autocomplete/autocomplete-a11y.html
index f2a6ee6c926c..e84762443315 100644
--- a/src/demo-app/a11y/autocomplete/autocomplete-a11y.html
+++ b/src/demo-app/a11y/autocomplete/autocomplete-a11y.html
@@ -1,15 +1,15 @@
-
+
diff --git a/src/demo-app/a11y/button/button-a11y.ts b/src/demo-app/a11y/button/button-a11y.ts
index aab2e3858c75..8a9398858a89 100644
--- a/src/demo-app/a11y/button/button-a11y.ts
+++ b/src/demo-app/a11y/button/button-a11y.ts
@@ -1,5 +1,5 @@
import {Component} from '@angular/core';
-import {MdSnackBar} from '@angular/material';
+import {MatSnackBar} from '@angular/material';
@Component({
moduleId: module.id,
@@ -10,7 +10,7 @@ import {MdSnackBar} from '@angular/material';
export class ButtonAccessibilityDemo {
counter: number = 0;
- constructor(public snackBar: MdSnackBar) {}
+ constructor(public snackBar: MatSnackBar) {}
openSnackBar(message: string) {
this.snackBar.open(message, '', {
diff --git a/src/demo-app/a11y/card/card-a11y.html b/src/demo-app/a11y/card/card-a11y.html
index 6a1961f088ce..c896216f530c 100644
--- a/src/demo-app/a11y/card/card-a11y.html
+++ b/src/demo-app/a11y/card/card-a11y.html
@@ -1,8 +1,8 @@
Dogs group
Showing a card with a group of content
-
-
+
+
Herding Group
Hound Group
Non-Sporting Group
@@ -12,25 +12,25 @@
Dogs group
Working Group
Foundation Stock Service
Miscellaneous Class
-
-
+
+
Husky
Showing a card with title only
-
+
Siberian Husky
-
+
Malamute
Showing a Card with title and subtitle.
-
- Alaskan Malamute
- Dog breed
-
+
+ Alaskan Malamute
+ Dog breed
+
@@ -39,55 +39,55 @@
German Shepherd
Showing a card with title, subtitle, and a footer.
-
- Dog breed
- German Shepherd
-
+
+ Dog breed
+ German Shepherd
+
The German Shepherd is a breed of medium to large-sized working dog that originated in
Germany. The breed's officially recognized name is German Shepherd Dog in the English
language. The breed is also known as the Alsatian in Britain and Ireland.
-
-
+
+
People also search for Rottweiler, Siberian Husky, Labrador Retriever, Doberman Pinscher
-
-
+
+
Dachshund
Showing a card with title, subtitle, and avatar as header and a card image.
-
-
-
- Dachshund
- Dog breed
-
-
+
+
+ Dachshund
+ Dog breed
+
+
-
+
The dachshund is a short-legged, long-bodied, hound-type dog breed.
-
-
+
+
Shiba Inu
Showing a card with header, content, image, and two action buttons: "share" and "like".
-
-
-
- Shiba Inu
- Dog Breed
-
-
-
+
+
+
+ Shiba Inu
+ Dog Breed
+
+
+
The Shiba Inu is the smallest of the six original and distinct spitz breeds of dog from Japan.
A small, agile dog that copes very well with mountainous terrain, the Shiba Inu was originally
bred for hunting.
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/src/demo-app/a11y/card/card-a11y.ts b/src/demo-app/a11y/card/card-a11y.ts
index 613d72d3af4f..1794ec63212b 100644
--- a/src/demo-app/a11y/card/card-a11y.ts
+++ b/src/demo-app/a11y/card/card-a11y.ts
@@ -1,5 +1,5 @@
import {Component} from '@angular/core';
-import {MdSnackBar} from '@angular/material';
+import {MatSnackBar} from '@angular/material';
@Component({
moduleId: module.id,
@@ -10,7 +10,7 @@ import {MdSnackBar} from '@angular/material';
export class CardAccessibilityDemo {
showProgress: boolean = false;
- constructor(private snackBar: MdSnackBar) {}
+ constructor(private snackBar: MatSnackBar) {}
openSnackbar(message: string) {
this.snackBar.open(message, '', {duration: 2000});
diff --git a/src/demo-app/a11y/checkbox/checkbox-a11y.html b/src/demo-app/a11y/checkbox/checkbox-a11y.html
index 56eca75a04f6..ecf6a3e8aa2e 100644
--- a/src/demo-app/a11y/checkbox/checkbox-a11y.html
+++ b/src/demo-app/a11y/checkbox/checkbox-a11y.html
@@ -1,34 +1,34 @@
Checkbox without label
-
+
Standalone checkbox
- Yes, I agree to the terms and conditions
+ Yes, I agree to the terms and conditions
- No, I do not agree to the terms and conditions
+ No, I do not agree to the terms and conditions
astronomical units (4.50×109 km). It is named after the Roman god of the sea and has the
astronomical symbol ♆, a stylised version of the god Neptune's trident.
-
+
-
-
+
+
-
+
Read more on Wikipedia
-
+
diff --git a/src/demo-app/a11y/dialog/dialog-neptune-iframe-a11y.html b/src/demo-app/a11y/dialog/dialog-neptune-iframe-a11y.html
index a51b3ad5a958..da7cf120ad29 100644
--- a/src/demo-app/a11y/dialog/dialog-neptune-iframe-a11y.html
+++ b/src/demo-app/a11y/dialog/dialog-neptune-iframe-a11y.html
@@ -1,9 +1,9 @@
-
Neptune
+
Neptune
-
+
-
+
-
- Close
-
+
+ Close
+
diff --git a/src/demo-app/a11y/dialog/dialog-welcome-a11y.html b/src/demo-app/a11y/dialog/dialog-welcome-a11y.html
index 25c8355f7f5f..f1d0cf3074f6 100644
--- a/src/demo-app/a11y/dialog/dialog-welcome-a11y.html
+++ b/src/demo-app/a11y/dialog/dialog-welcome-a11y.html
@@ -10,4 +10,4 @@
Welcome to Angular Material dialog demo page!
be accessible, enabling people with disabilities to participate equally on the Web.
-Close
+Close
diff --git a/src/demo-app/a11y/grid-list/grid-list-a11y.html b/src/demo-app/a11y/grid-list/grid-list-a11y.html
index 0316771a2c52..3627a0948176 100644
--- a/src/demo-app/a11y/grid-list/grid-list-a11y.html
+++ b/src/demo-app/a11y/grid-list/grid-list-a11y.html
@@ -1,42 +1,42 @@
Types of coffee (fix-height grid-list)
-
-
+
{{tile.text}}
-
-
+
+
Types of coffee (ratio-height grid list)
-
-
+
+
{{tile.text}}
-
-
+
+
Types of coffee (fit-height grid list)
-
-
+
{{tile.text}}
-
-
+
+
Angular team dogs (Grid list with header and footer)
-
-
+
-
- {{passwordToggleIcon}}
+ {{passwordToggleIcon}}
- Hint: favorite color
- You must enter your password.
-
+ Hint: favorite color
+ You must enter your password.
+
Input with error message (e.g. email field)
-
-
+
- You must enter your email.
- Not a valid email address.
-
+ You must enter your email.
+ Not a valid email address.
+
Input with prefix & suffix (e.g. currency converter)