with 3.x I used to be able to call a method whenever the info template was shown like infoTemplate.setcontent(mymethod); I dont see a way to do this in 4.0, or even a way to set the content when the pop up is shown. any feedback is appreciated!
Solved! Go to Solution.
It looks like this is now possible in ArcGIS API for JavaScript 4.1:
ArcGIS API for JavaScript Sandbox - PopupTemplate function
The sample does not work anymore. It worked fine when it first released but somehow it's now not working.