Skip to content

Instantly share code, notes, and snippets.

@davewilton

davewilton/na.js Secret

Created December 2, 2015 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davewilton/6a6c18f69ad570b0ef3e to your computer and use it in GitHub Desktop.
Save davewilton/6a6c18f69ad570b0ef3e to your computer and use it in GitHub Desktop.
You reference the dojo.js instead e.g
<script src="arcgis-js-api/dojo/dojo.js"></script>
<script src="init.js"></script>
init.js
require({
packages: [{
name: "myPackage",
location: window.path + "/myPackage"
},
{
name: "dijit",
location: window.path + "/arcgis-js-api/dijit"
},
{
name: "esri",
location: window.path + "/arcgis-js-api/esri"
},
{
name: "xstyle",
location: window.path + "/arcgis-js-api/xstyle"
}] //anything else such as dgrid
});
require(["myPackage/App", "dojo/domReady!"], function (App) {
var app = new App();
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment