How do you set the style
option of the PayPal Checkout Button when using it as Angular.js element directive?
this.paypal = {
// ...
style: {
color: 'black',
shape: 'rect'
}
}
It would seem that the style
option cannot be passed in a binding as style
as this is already a reserved HTMLElement
attribute?
<paypal-button
client="$ctrl.paypal.client"
commit="true"
env="$ctrl.paypal.env"
style="$ctrl.paypal.style"
on-authorize="$ctrl.paypal.onAuthorize"
on-cancel="$ctrl.paypal.onCancel"
payment="$ctrl.paypal.payment">
</paypal-button>
). I was simply looking for how to set the
style` parameter of the Angular.js component, givenstyle
is already a valid HTMLElement attribute. – Glia