Refactor #4211 - For Badge Directive

This commit is contained in:
Tuğçe Küçükoğlu 2023-07-31 14:24:02 +03:00
parent 97a5310d28
commit f8bffa473d
2 changed files with 34 additions and 2 deletions

View file

@ -10,7 +10,9 @@ const BadgeDirective = BaseBadgeDirective.extend('badge', {
const badge = DomHandler.createElement('span', {
id,
class: !el.unstyled && this.cx('root'),
'p-bind': this.ptm('root')
'p-bind': this.ptm('root', {
context: binding.modifiers
})
});
el.$_pbadgeId = badge.getAttribute('id');