I don't think there's a way to override this behavior in the compose
binding. However, I do think you could accomplish this behavior using a custom binding or transition.
For the transition, try modifying the transition so that it sets the view's visibility
and display
attributes as desired.
The other idea is to use a custom binding that only implements the init
function. In this function, you could set the view's attributes.
Now this may work, but I think for either case, you'll probably also have to clear the visibility attribute once you're ready to show it. You could do this from the attached
view model function.
Another, maybe cleaner, alternative is to consider moving the computation logic to the attached
view model function, because at this time, durandal has loaded and displayed the view. If this is suitable, you wouldn't have to mess with the visibility
attribute at all.