Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit efd5d99

Browse filesBrowse files
committed
minor #16216 Import jquery as the $ variable. (drew7721)
This PR was submitted for the 5.4 branch but it was merged into the 5.3 branch instead. Discussion ---------- Import jquery as the $ variable. If we want to use the `$` for jQuery we need to import it as such. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- 3747324 Import jquery as the $ variable.
2 parents 5b36f5b + 3747324 commit efd5d99
Copy full SHA for efd5d99

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎frontend/encore/simple-example.rst

Copy file name to clipboardExpand all lines: frontend/encore/simple-example.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ Great! Use ``import`` to import ``jquery`` and ``greet.js``:
182182
// ...
183183
184184
+ // loads the jquery package from node_modules
185-
+ import jquery from 'jquery';
185+
+ import $ from 'jquery';
186186
187187
+ // import the function from greet.js (the .js extension is optional)
188188
+ // ./ (or ../) means to look for a local file

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.