What is a hook? List types of hooks available in Sails.js?

devquora
devquora

Posted On: Jun 23, 2021

 

In Sail.js a hook is a Node module that adds functionality to the Sails core and also defines the requirements a module must meet for Sails to be able to import its code and make the new functionality available. Hooks are of three types in Sail.js, these are as follows:

  • Core hooks
  • App-level hooks
  • Installable hooks 

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    Sails.js Interview Questions

    Explain Sails.js?

    Sails.js is an open-source model view controller means the MVC web application framework developed atop the Node. js environment which is designed to make it easy to build custom, enterprise-grade Nod...

    Sails.js Interview Questions

    List some features of Sails.js?

    Some of the features of Sails.js are as follows:Powerful associations. Auto-generate REST APIs. Support WebSockets with no additional code.  Declarative, reusable security policies.  ...

    Sails.js Interview Questions

    How to create an application instance in Sails.js?

    You can create an application instance in Sails.js with the help of the inbuilt application method present in Sail.js....