Closed jcoronel94 closed 2 years ago
@jcoronel94 Did you find any workaround?, it works with *scLink but nit with alternatives
@NijasHameed There are two workarounds: 1st:
<a *scGenericLink="rendering.fields.internalLink; attrs: {class: 'foo'}"></a>
2nd:
<a [class]="'foo'" *scGenericLink="rendering.fields.internalLink"></a>
Fixed in #1050
Description
Hi, Similar to #378 , classes are being overwritten when using the scGenericLink and scRouterLink directives with internal links. According the angular sample app, these directives are alternatives to the *scLink directive.
Expected behavior
Classes should preserve and if a class is set on internalLink field then it should append.
Steps To Reproduce
<a class="foo" *scGenericLink="rendering.fields.internalLink"></a>
<a class="foo" *scRouterLink="rendering.fields.internalLink"></a>
Your Environment
Screenshots