I\'m using the exact code from the angular page, with the only difference being I\'m using Angular 7 and @angular/material 7.
component.html: