Skip to content

Commit

Permalink
fix(paginator): remove dependency on @angular/forms (#6080)
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 2, 2017
1 parent 57a2f29 commit 953b38e
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
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
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 953b38e

Please sign in to comment.