K
K
kodwi2017-04-16 00:38:12
JavaScript
kodwi, 2017-04-16 00:38:12

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

1 answer(s)
O
ozknemoy, 2017-04-16
@ozknemoy

looks like semantic-ui is not connected

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question