You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Below are 2 different setups (with App Module (legacy) or Standalone) which in both cases require the `AngularSlickgridModule.forRoot()`, so make sure to include it.
111
111
112
112
#### App Module (legacy)
113
-
##### This only works with version 9.0 and below, any newer version (v10.0 and above) is now purely Standalone
113
+
##### This only works with version 9.x and below, any newer version (v10.0 and above) is now purely Standalone
114
114
Include `AngularSlickgridModule` in your App Module (`app.module.ts`)
115
115
116
116
> **Note:** Make sure to add the `forRoot` since it will throw an error in the console when missing.
@@ -126,7 +126,7 @@ import { AngularSlickgridModule } from 'angular-slickgrid';
126
126
exportclassAppModule { }
127
127
```
128
128
129
-
#### Standalone (App Config)
129
+
#####Standalone (App Config)
130
130
> #### see this Stack Overflow [answer](https://stackoverflow.com/a/78527155/1212166) for more details and Stackblitz demo
131
131
132
132
If your app is using standalone style, go to `app.config.ts`
@@ -206,6 +206,7 @@ export class GridBasicComponent {
206
206
207
207
constructor() {
208
208
this.prepareGrid();
209
+
this.getData();
209
210
}
210
211
211
212
prepareGrid() {
@@ -221,17 +222,16 @@ export class GridBasicComponent {
221
222
enableAutoResize: true,
222
223
enableSorting: true
223
224
};
225
+
}
224
226
227
+
// fetch your data...
228
+
getData() {
225
229
// fill the dataset with your data (or read it from the DB)
0 commit comments