JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums General Discussions Smart.App data binding smart-model='reference' vs value='{{reference}}''

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100242
    admin
    Keymaster

    Hi,
    https://codepen.io/cetinsert/pen/jONmPNQ?editors=1001

    1. When should people use smart-model="" vs value="{{}}"?

    Thanks,
    Cetin

    #100243
    admin
    Keymaster

    Hi Cetin,
    It’s better to use {{value}} for declarative rendering only. The smart-model also determines automatically the component type and binds it as the bound property could not be ‘value’, it could be ‘selectedValues’ for lists, ‘checked’ for checkboxes and radio buttons.
    Best Regards,
    George
    Smart HTML Elements
    https://www.htmlelements.com

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.