I'm trying to set activeContent from a global variable but sadly unsuccessfully, please check this snippet
You need to define ActiveContent during the component initialization. Then you can dynamically change the template, which will show this activeContent element.
It looks like you're new here. If you want to get involved, click one of these buttons!