Const
Hook decorator to mark a method as a lifecycle hook And automatically add it to the global lifecycle hook registry.
The name of the lifecycle hook.
A class decorator function that sets the metadata using the provided options.
class MyClass { // ... @Hook('onPreparingPage') onPreparingPage () {}} Copy
class MyClass { // ... @Hook('onPreparingPage') onPreparingPage () {}}
Hook decorator to mark a method as a lifecycle hook And automatically add it to the global lifecycle hook registry.