I'd say that once she split with Hank, she came into her own as a character. She realised she wasn't a flighty teenager any more, didn't need to be part of a couple to be a successful superhero, and had the potential to be a leader.
The Avengers recognised this and gave her the opportunity to prove herself because they trusted her. It worked.