Extends the DittoView directive to declare the strongly-typed model for the IPublishedContent (generated by ModelsBuilder).
The usage would be...
@inherits DittoView<ContentPage, MyViewModel>
@Model.Content // strongly-typed as ContentPage
@Model.View // strong-typed as MyViewModel
I've tried to keep the API backwards-compatible, but it did require changes to BaseDittoViewModel, so it's a breaking-change, (although someone would have to be doing some advanced stuff if they are using BaseDittoViewModel).
Extends the
DittoView
directive to declare the strongly-typed model for theIPublishedContent
(generated by ModelsBuilder).The usage would be...
I've tried to keep the API backwards-compatible, but it did require changes to
BaseDittoViewModel
, so it's a breaking-change, (although someone would have to be doing some advanced stuff if they are usingBaseDittoViewModel
).