Actual: the chip can't be removed Expected: chip can be removed once you click x
I have done the following actions:
- Imported MatIconModule and MatChipsModule in the main app.module. The module with my codes is a Child module/lazy loading. I need to import MatIconModule also in the Child component for the icon to work.
import { MatChipsModule } from '@angular/material/chips';
- Added the following in index.html
link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"
- Added the ff in style.css and updated angular.json file.
@import "@angular/material/prebuilt-themes/indigo-pink.css";
"styles": [ "src/assets/css/style.css"] //angular.json
- Installed hammer