1// In the console
2// First install jQuery
3npm install --save jquery
4// and jQuery Definition
5npm install -D @types/jquery
6
7=======================================(in angular)
8import * as $ from 'jquery';
9//
10$('#elemId').width();
11
12// OR
13
14// CommonJS style - working with "require"
15import $ = require('jquery')
16//
17$('#elemId').width();
1// First install jQuery
2npm install --save jquery
3// and jQuery Definition
4npm install -D @types/jquery
5
6=======================================(in angular)
7import * as $ from 'jquery';
8//
9$('#elemId').width();
10
11// OR
12
13// CommonJS style - working with "require"
14import $ = require('jquery')
15//
16$('#elemId').width();