fix(paginator): remove dependency on @angular/forms (#6080)

Since it's now possible to use `md-select` without `ngModel`, we can remove the dependency on `@angular/forms` from the paginator.

Fixes #5717.
This commit is contained in:
Kristiyan Kostadinov
2017-08-03 00:20:16 +02:00
committed by tinayuangao
parent 57a2f290b1
commit 953b38e921
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -8,7 +8,6 @@
import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule} from '@angular/forms';
import {MdButtonModule} from '../button/index';
import {MdSelectModule} from '../select/index';
import {MdPaginator} from './paginator';
@@ -19,7 +18,6 @@ import {MdTooltipModule} from '../tooltip/index';
@NgModule({
imports: [
CommonModule,
FormsModule,
MdButtonModule,
MdSelectModule,
MdTooltipModule,
+1 -1
View File
@@ -5,7 +5,7 @@
<md-select *ngIf="_displayedPageSizeOptions.length > 1"
class="mat-paginator-page-size-select"
[ngModel]="pageSize"
[value]="pageSize"
[aria-label]="_intl.itemsPerPageLabel"
(change)="_changePageSize($event.value)">
<md-option *ngFor="let pageSizeOption of _displayedPageSizeOptions" [value]="pageSizeOption">