@aamirrajpoot wrote:
I have been using jQuery for various small things like datepicker and reveal modals and animations in my application, now. I ran ember-modules-codemod and all of my files (800+) are updated.
That also changed jQuery imports. I have been using
Ember.$(
for Global level andthis.$(
for component level .What are my options and how I can keep both of them working.
Right now
import Ember from 'ember'; const {$} = Ember; // `error Use import $ from 'jquery'; instead of using Ember destructuring ember/new-module-imports`
and
import $ from 'jquery'; // `error Do not use global `$` or `jQuery` ember/no-global-jquery`
I have used it like
Ember.$(body).addClass('blurBG'); // to blur out whole page under the popup this.$().autocomplete(); // implement jquery autocomplete on a textfield
Posts: 1
Participants: 1