Hello @abocsik,
You can use this link to solve your issue : Generating a OpenLayers map as a Component