Why has my dog started barking at other dogs after greeting them?

My dog, ten months old give or take, is usually friendly, calm, and excited to play with other dogs on leash. She started being aggressive to dogs after greeting them by barking excessively with fur raised. I wanted to know what could have caused the change? Will she calm down? How to deal with this?