Answers for "use jquery in angular html"

-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

Code answers related to "TypeScript"

Browse Popular Code Answers by Language