Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Unable to use jquery-ui #493

Closed
1 task
IamKritika opened this issue Jul 25, 2016 · 2 comments
Closed
1 task

Unable to use jquery-ui #493

IamKritika opened this issue Jul 25, 2016 · 2 comments

Comments

@IamKritika
Copy link

  • I'm submitting a ...
  • bug report

I was trying to integrate jquery-ui datepicker widget in my project. So jquery-ui requires 'jQuery' as a global variable which I have exposed through webpack provide plugin but the code is breaking on server side.

It says it is unable to find 'jQuery' variable.

the code is as follows -

webpack.config.js

new webpack.ProvidePlugin({ jQuery: 'jquery', $: 'jquery', jquery: 'jquery' })

datepicker.component.ts

import "jquery-ui/ui/widgets/datepicker.js"

Can you suggest any workaround for using jquery widgets.

@MarkPieszak
Copy link
Member

MarkPieszak commented Jul 25, 2016

Same issue as #382 #490. jQuery on the server-side.

Can you follow issue #490 to see the progress on this one?

As alternatives, I would suggest using ng2-bootstrap for angular2 (it has a datepicker, and everything else)
https://valor-software.com/ng2-bootstrap/#/datepicker

Also (it's not there yet), but eventually Material2 for ng2 will have a datepicker as well (progress here: angular/components#675)

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants