Answers for "run jquery 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

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