Answers for "use jquery in angular"

-1

use jquery in angular

// In the console
// First install jQuery
npm install --save jquery
// and jQuery Definition
npm install -D @types/jquery

=======================================(in angular)
import * as $ from 'jquery';
//
$('#elemId').width();

// OR

// CommonJS style - working with "require"
import $ = require('jquery')
//
$('#elemId').width();
Posted by: Guest on August-21-2021
0

import jquery into angular 8

import * as $ from 'jquery'
Posted by: Guest on January-09-2021
4

declare * angular jquery

declare var $:any;
Posted by: Guest on July-17-2020
0

add jquery angular

../node_modules/jquery/dist/jquery.min.js
Posted by: Guest on January-04-2021

Code answers related to "TypeScript"

Browse Popular Code Answers by Language