Component โบ register Component.register() method Registers a callback to be called when unloading Signature: register(cb: () => any): void; Parameters ParameterTypeDescriptioncb() โ any Returns: void