As a fresher in Angular.I have a doubt.In Angular 4, we have an md-icon tag from MdIconModule which was after changed to MatIconModule in later angular version.
consider a code in Angular 4
app.component.html
<md-icon>add_alert</md-icon>
app.componentn.css
md-icon.add-alert{ color : purple }
In above code, the icon has been changed to purple from black.
But in Angular 9,
app.component.html
<mat-icon>add_alert</mat-icon>
app.componentn.css
mat-icon.add-alert{ color : purple }
The above code didn't change the color.And also we need to manually add the class in the tag to change the color.
can anyone explain the cause