Bind to simple array of strings

Bind to simple array of strings

Asked on November 16, 2018 in knockout js.
Add Comment


  • 2 Answer(s)

    For bind to simple array of strings,Use these

    1.During using a template: ${$data}

    2.During not using a template: $data

    Answered on November 16, 2018.
    Add Comment

      Lets try this code:

    <ul data-bind="foreach: $root">
      <li data-bind="text: $data"></li>
    </ul>
    
    Answered on November 16, 2018.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.