You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using the matBadge directive and I need to pass some default value to the matBadge(for example 0, 7, etc). But as I enabled the strictTemplates flag in my tsconfig.json, I am getting an error Type 'number' is not assignable to type 'string'
since the @Input matBadge is expecting a string.
I can fix it by doing something like:- @Input() badgeValue = '7';
and then pass it to matBadge directive, but I feel like this is annoying.