I have piece of code which looks proper but behaviour says something different. I am trying to get the value selected by the user in this code:

```
  <mat-form-field name="selectPagination">
    <mat-select  (selectionChange)="selectAndRoute($event.value)">
      <mat-option  [value]="five">5</mat-option>
      <mat-option  [value]="ten">10</mat-option>
      <mat-option  [value]="twentyFive">25</mat-option>
      <mat-option  [value]="oneHundred">100</mat-option>
    </mat-select>
  </mat-form-field>

```

and this outputs undefined:

```
selectAndRoute(value){
  console.log(value);
}

```