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();