Answer the question
In order to leave comments, you need to log in
How to properly connect semantic ui plugins in Angular 2/4?
I want to use jq plugins from semantic ui in Angular app. What I have already tried: installed the npm package @types/semantic-ui
, connected it to the component like this: import * as $ from 'jquery'
, and now, when I try to call the plugin, for example, like this: $('.ui.dropdown').dropdown()
, then the Web Storm IDE itself does not underline or swear anything, but even sees this method in the available $. But when I run the dropdown, it crashes at the end with the error Property 'dropdown' does not exist on type 'JQuery'. What's wrong?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question