I am working with durandal, and I am using shadowbox plugin "http://shadowbox-js.com/" to view image in a popup
to make it work according to shadowbox documention I have to call: Shadowbox.init();
so I added it in attached event, but it doesn't work 'may be because the images are not loaded yet'
any solution to make it work??
Try using the composition complete lifecycle callback. See here for more information: http://durandaljs.com/documentation/Hooking-Lifecycle-Callbacks.html#combined-lifecycle