Previous versions of Angular had NgAttr and I think NgChecked which all seem to provide the functionality that I'm after. Conditionally We can import tooltip module (MatTooltipModule) in our components ts file or app.module.ts file or some common material module which can be used across the application as explained in angular material tutorial. 4) Import Material Modules. Another solution would be using [class.active] . Example :