-
-
Save davewilton/6a6c18f69ad570b0ef3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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