Using Knockout.js with newest jQuery Files and ASP.NET MVC

Using Knockout.js with newest jQuery Files and ASP.NET MVC

Asked on December 26, 2018 in knockout js.
Add Comment


  • 2 Answer(s)

        For doing the  natural jquery binding instead of  html binding , Try this code :

    <tbody data-bind='template: { name: "giftRowTemplate", foreach: gifts }'></tbody>
    

        Rather than this :

    <tbody data-bind="template:'giftRowTemplate'"></tbody>
    

        This line  {{each (i, gift) gifts}} is wrong in this.

    Answered on December 26, 2018.
    Add Comment

    This solution is useful in this case :

    Try this  {{each gifts}} rather than the  {{each (i, gift) gifts}} will work.

    Answered on December 26, 2018.
    Add Comment


  • Your Answer

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