Skip to main content

jQuery components

Comments

1 comment

  • 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

Please sign in to leave a comment.