dotvvm icon indicating copy to clipboard operation
dotvvm copied to clipboard

Support nested class controls

Open exyi opened this issue 3 years ago • 0 comments

Since controls got shorter and easier to write, it would make sense to allow nested class to be controls. At least in tests it would be quite useful.


class SomeTests {
    public class MyControl {
         ....
    }

    [TestMethod]
    public void Test() {

        await cth.RunPage(typeof(BasicTestViewModel), @"
                <cc:MyControl TagName=div />
                "
            );
      }
}

It's currently not possible to use the control in dothtml markup

exyi avatar Feb 04 '22 11:02 exyi