Skip to content

Commit

Permalink
fix(paginator): remove dependency on @angular/forms
Browse files Browse the repository at this point in the history
Since it's now possible to use `md-select` without `ngModel`, we can remove the dependency on `@angular/forms` from the paginator.

Fixes #5717.
  • Loading branch information
crisbeto authored and tinayuangao committed Aug 1, 2017
1 parent e79f7f9 commit ba252ab
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions src/lib/paginator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -19,7 +18,6 @@ import {MdTooltipModule} from '../tooltip/index';
@NgModule({
imports: [
CommonModule,
FormsModule,
MdButtonModule,
MdSelectModule,
MdTooltipModule,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/paginator/paginator.html
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit ba252ab

Please sign in to comment.