I went through the tutorial to set up agGrid for AngularJS with TypeScript instead of JavaScript. Here's what I did:
npm install ag-grid
var AgGrid = require('ag-grid');
AgGrid.initialiseAgGridWithAngular1(angular);
var module = angular.module("example", ["agGrid"]);
After setting it up in my HTML, the grid was visible:
<div ag-grid="$ctrl.gridOptions" class="ag-theme-balham" style="height: 100%;"></div>
However, I noticed that the CSS wasn't showing up. https://i.sstatic.net/ZYzoe.png
To fix this, I tried adding some required CSS files:
require("ag-grid/dist/styles/ag-grid.css")
require("ag-grid/dist/styles/ag-theme-balham.css")
var AgGrid = require('ag-grid');
Unfortunately, it still didn't work. Any suggestions? Thank you