Dojo and Asynchronous Module Definition (AMD)
I've been updating one of my mapping sites to use AMD Module Require
replacing
dojo.require("geocortex.essentials");
with
require(["geocortex/essentials"], function(){
// code
});
is not working for me.
is this the correct way of loading essentials when using AMD?
- Tyler
0
-
Jason,
no it wasn't failing. just wanting to make sure that I was using it properly if I started moving more of my apps over to using AMD.
I'll keep it simple and use script tag.
thanks for the info.
-Tyler.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar