Search Function Implementation

Here is a search function I am trying to implement in a multiview app. (inspired by Search functionality in App) and the call is a get Call (see code)

It is however not working… From console.log, the value $ doesn’t exist.

See the Pen DnxFm by Mohamed E. Najd (@outvader) on CodePen.

Can I know where are the problems with this approach and how to fix them for an app that uses views (ideally, search is just a view in my app) ?