Modules in Angular
Modules in Angular
Reduce the size of your Angular app by importing only the modules that you need and use.
To use modules with Handsontable's Angular wrapper, follow the steps below:
Step 1: Import the base module
No matter which optional modules you use, you need to import the base module.
In the entry point file of your application, import the handsontable/base module:
Step 2: Import optional modules
Import optional modules of your choice:
Import optional modules of your choice, along with their registering functions.
For example, to import the numeric cell type module and the UndoRedo plugin module:
Step 3: Register your modules
Register your modules, to let Handsontable recognize them.
For example, to register the numeric cell type module and the UndoRedo plugin module: