Zum Hauptinhalt gehen

jQuery components

Kommentare

1 Kommentar

  • Permanently deleted user

    Hi Josh,

    The "var" data-binding directive will add the DOM element to the view model as an additional property/member. You need to drop the "#" from the autocomplete setup. The following should work in your view model:

    ModuleViewModel.ts

    $(this[" searchInp?utElement "]).autocomplete({  // this["#searchInputElement"] returns undefined

     

      source: dataSource

     

    });

    Hope this helps,

    --Alejandro

     

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.