I have started posts about this before, but this is maybe a little bit different.
I want to declare a variable in paragraphTemplateA.cshtml, and then I want to use/show it in paragraphTemplateB.cshtml
I was thinking i could use ViewBag for this, but it doesn´t work.
So far I have this in ParagraphTemplateA.cshtml
And try to use it like this in ParagraphTemplateB.cshtml
<div class="col-xl-4 col-12 folk starvsf @ViewBag.DeildType">
But it doesn´t work.
I have attached both paragraph templates
NB: They are both rendered on the same page
What am I doing wrong?