A
A
acwartz2019-09-25 19:18:26
Angular
acwartz, 2019-09-25 19:18:26

How to correctly connect the jquery extension in Angular 8?

Hey!
There is an angular 8 application
, there is a CSS Framework Fomantic UI
, it does not have any extensions for angular, wui or react, the maximum that was inherited from its predecessor is the @types/semantic-ui package.
I'm trying to do the simplest thing:
pull this page ( https://fomantic-ui.com/examples/login.html ) on angular.
The framework has a JS library so that the components of the framework are alive and easy to use.
Either this extends jQuery.
In /assets/ put jquery, and css, js framework files.
In index.html I connected them via link, script tags, layout works.
I installed the @types/jquery, @types/semantic-ui and VS-Code packages and finally knows what $.form is and where it comes from:

VS code knows about the jquery extension

66fbab714d6a32bca29f7c8c761cc2fb.png

But for some reason the browser does not understand:
In one screenshot

43c1e19beb5b5aa66dbdd523dc91aa44.png

How to resolve it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
acwartz, 2019-09-25
@acwartz

For unknown reasons, the LoginComponent had to remove its own $ import from jquery. Problem solved.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question