Search code examples
sails.jsarcgisesriarcgis-js-api

How can I use AMD modules with Sails JS


Please, i need to work with ArcGIS API for Javascript but i don't know how about use AMD modules with Sails JS.

I love sails js, and I do not want to throw my project in the trash, help please.


Solution

  • ArcGIS API for JS have two modes: legacy code or AMD.If not familiar with AMD,you can integrate your code with legacy code of the API.

    I am not familiar with sails.js,if you have to integrate with AMD,you can refer to Using jQuery in ArcGIS API for JS which might enlighten you on how to use sails.js in ArcGIS API.

    Hope it could you.