Using a ViewComponent with a Parameter

I am trying to display a ViewComponent passing it a string parameter, but cannot get this to work. Instead of looking for MyViewComponent\Default.cshtml, if, for instance, I was to pass “FooBar” as the value of the parameter, it is looking for MyViewComponent\FooBar.cshtml. I assume Umbraco overrides the routing . The Umbraco documentation doesn’t contain any reference to passing parameters to a ViewComponent. Would anyone be able to help me out with this?


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/110794-using-a-viewcomponent-with-a-parameter