Aller au contenu principal

jQuery components

Commentaires

1 commentaire

  • 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

Vous devez vous connecter pour laisser un commentaire.