У меня сработало следующее.
angular.json:
...
"styles": [
"src/styles.css",
"./node_modules/jquery-ui/themes/base/all.css",
"./node_modules/free-jqgrid/css/ui.jqgrid.min.css"
],
"scripts": [
"./node_modules/jquery/dist/jquery.min.js",
"./node_modules/free-jqgrid/js/jquery.jqgrid.min.js"
]
...
Компонент:
import { Component, OnInit } from '@angular/core';
declare var jQuery:any;
@Component({
...
})
export class MyComponent implements OnInit {
...
ngAfterViewInit() {
(<any>jQuery("#grid")).jqGrid({
colModel: [
{ name: "firstName" },
{ name: "lastName" }
],
data: [
{ id: 10, firstName: "Angela", lastName: "Merkel" },
{ id: 20, firstName: "Vladimir", lastName: "Putin" },
{ id: 30, firstName: "David", lastName: "Cameron" },
{ id: 40, firstName: "Barack", lastName: "Obama" },
{ id: 50, firstName: "François", lastName: "Hollande" }
]
});
}
}
html:
<table id="grid"></table>