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

Unable to use jquery-ui  #493

Closed
Closed
@IamKritika

Description

@IamKritika
    • 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.

Activity

MarkPieszak

MarkPieszak commented on Jul 25, 2016

@MarkPieszak
Contributor

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

angular-automatic-lock-bot commented on Sep 4, 2019

@angular-automatic-lock-bot

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.

locked and limited conversation to collaborators on Sep 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @MarkPieszak@IamKritika

        Issue actions

          Unable to use jquery-ui · Issue #493 · angular/universal