HTML Elements Forums General Discussions Smart.App data binding smart-model='reference' vs value='{{reference}}''

This topic contains 1 reply, has 2 voices, and was last updated by Avatar admin 1 year, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100242
    Avatar
    Anonymous

    Hi,

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

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

    Thanks,
    Cetin

    #100243
    Avatar
    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.