It would be more ecological friendly to just use you gasoline car until it die and then only make the switch to electric. And even then, buying a used car and also running it until it dies might still be more ecological.
The technology will get better, on production level and on the car level. But right now, its very far from a clear cut to say if electric car are more 'green' than gazoline car (that are already produced).
Overall, the main issue is personal transportation. If you really want to be ecological, you should use mass transportation (excluding planes for short travel) whenever possible and use car sharing when you really need a personal transportation. The idea of all having a car sitting idle 90% of the time is fundamentally incompatible with ecology and electric car won't solve this.
[1] https://en.wikipedia.org/wiki/Environmental_aspects_of_the_e...