Rotativa icon indicating copy to clipboard operation
Rotativa copied to clipboard

ViewAsPdf ignoring conditional statements in view?

Open ccooper4 opened this issue 7 years ago • 1 comments

I have a razor view that has multiple partials loaded inside it depending on if certain conditions are met in the viewmodel, but it seems to ignore the if statements completely. Does rotativa grab everything inside the view as it is rather than running the code inside?

ccooper4 avatar Feb 16 '18 10:02 ccooper4

It renders the views. Perhaps something is missing in the model?

webgio avatar Feb 16 '18 10:02 webgio