Answers for "angular jquery use"

-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
4

declare * angular jquery

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

Code answers related to "TypeScript"

Browse Popular Code Answers by Language