Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1 KB

File metadata and controls

44 lines (30 loc) · 1 KB

gridstack.module

Classes

GridstackModule

Defined in: angular/projects/lib/src/lib/gridstack.module.ts:44

Deprecated

Use GridstackComponent and GridstackItemComponent as standalone components instead.

This NgModule is provided for backward compatibility but is no longer the recommended approach. Import components directly in your standalone components or use the new Angular module structure.

Example

// Preferred approach - standalone components
@Component({
  selector: 'my-app',
  imports: [GridstackComponent, GridstackItemComponent],
  template: '<gridstack></gridstack>'
})
export class AppComponent {}

// Legacy approach (deprecated)
@NgModule({
  imports: [GridstackModule]
})
export class AppModule {}

Constructors

Constructor
new GridstackModule(): GridstackModule;
Returns

GridstackModule