Adding External Libraries in sails project

61 views
Skip to first unread message

navdeep jain

unread,
Jul 9, 2015, 1:59:48 PM7/9/15
to sai...@googlegroups.com
@mikermcneil What is standard way to add external modules and other self made modules which we need to use in controllers?

Sávio Lucena

unread,
Jul 9, 2015, 2:06:42 PM7/9/15
to navdeep jain, sai...@googlegroups.com
You could expose them as global Services in Sails.js.


Sávio Lucena

On Thursday, Jul 9, 2015 at 2:59 PM, navdeep jain <jain0...@gmail.com>, wrote:

Ambroise Dhenain

unread,
Jul 9, 2015, 2:09:52 PM7/9/15
to navdeep jain, sai...@googlegroups.com
just install them as node_package modules.
then load them when you need them.

2015-07-09 19:59 GMT+02:00 navdeep jain <jain0...@gmail.com>:
@mikermcneil What is standard way to add external modules and other self made modules which we need to use in controllers?



--
Cordialement,

M. Ambroise Dhenain.

navdeep jain

unread,
Jul 13, 2015, 1:11:59 PM7/13/15
to sai...@googlegroups.com, jain0...@gmail.com
Thanks, this is what exactly I was looking for.
Reply all
Reply to author
Forward
0 new messages