What is a service in Sails.js?

devquora
devquora

Posted On: Jun 23, 2021

 

In Sail.js, Services are stateless libraries of functions that you can use from anywhere in your Sails app. These are generally pieces of reusable code that can be shared by your controllers.

    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....