mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
tinayuangao
parent
57a2f290b1
commit
953b38e921
@@ -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,
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user