The component is not working with angular 6. [minimal reproducible code.](https://stackblitz.com/edit/angular-ayufxs?embed=1&file=src/app/app.module.ts)