-
You'd install an electric shower (or equivalent inline water heater) at the same time. As long as it's a decent number of kilowatts (>8, but the higher the better) it'll be as good as a fossil fuel shower.
Resistive electric room heating is stupidly expensive though. If you're spending money you're meant to get an air source heat pump, though these have a large outdoor component that's not going to work in most flats.
Compared to a modern gas boiler, probably this. But it depends on what you are measuring - it will, right now, cost you much more to use, and will be slower at generating heat, and you probably have to have a storage tank with it unless you shower for thirty seconds or less in the morning. But if you are measuring green creds then obvs its going to be better than burning gas or whatever, especially if you can power it with renewable energy.