Jquery functions not working


#1

I have declared the Jquery on my app and everything was just fine.

But when I got to use some of its functions it keeps triggering not defined.

$(element).hide()
$(element).toggle()
etc.

If I put $(element)
I can see the element and all, but when I use $(element).hide() (for example) it breaks.

I know i can use the built-in angular tools, but I’m in need of Jquery for other stuff and its not working.

I installed with this command:

npm install jquery --save

Importing with this:

import * as $ from ‘jquery’

Any suggestions?