NgxsModule
using the forFeature
method. All the other syntax for how you import and describe them are the same. For example:ZoosState
:NgxsModule.forRoot([ZoosState])
. Assume you've got a feature offices
state:NgxsModule.forFeature([OfficesState])
. After the lazy module is loaded - the global state will have such signature:store.snapshot()
and printing the result to the console before and after the lazy module is loaded. .