Is it possible to create a js object and a few functions in a razor partial that can be shared among derived partials?
I want to do something like….
_BasePartial
{
define something using js
}
...
_DerivedPartial:_BasePartial
{
update something js
cause _base to act on something js
}
The JS defined both in the BasePartial and DerivedPartial views end up executing on the same page context, so there should be no problem with your use case. For example: