All kids go through this phase of preferring one parent over the other. It doesn't last but it's understandably painful to go through. Remember that most babies seem to prefer their mothers, and the fathers feel left out or incompetent or non-nurturing.
It's always painful when they've learned the word "hate" - try not to use it in your own home (I hate traffic, I hate asparagus) but that's not the full solution by any means.
As was said below, she's learning to be independent and to assert a certain amount of control over her situation. She gets a reaction from you and more attention, and she gets an extra "I love you" too. She's also learning to use words and she doesn't have a big enough vocabulary to express her frustrations, anger, needs, wants, or exhaustion. So your first task is to teach her not to scream - about anything, unless she is truly injured or frightened by a nightmare. As she escalates, you have to get calmer. Just say you can't understand her when she is screaming. It's okay to help her form sentences to express her sadness or frustration if you know the cause: I know you are sad that we have to leave the park; I know you don't want to turn off the TV. If she calms down, praise her for using her regular words and her "inside voice."
If she doesn't calm down, then she needs to be separated from you. What she wants is attention, so don't reward the screaming by giving her more. The consequences of screaming are isolation. Put her in her room and quietly tell her she's to stay there until she feels well enough to stop screaming. Tell her you don't listen to screaming and yelling, only to talking. Don't engage in a long discourse - just say each thing once and be done with it. If she can get out of her room, put one of those child-proof doorknob covers on so she can't turn it. If she's in the car, pull the car over, get out, stand away from the car but where she can still see you (and where passersby can see that you haven't left a child unattended), and read a book! No kidding - I kept a magazine and a book of crossword puzzles in the car for unexpected waits and unexpected tantrums. Go back to the car in 5 minutes and say "Oh good, you've stopped screaming, now we can finish our drive." If she's still at it, say, "I don't listen to screaming, so I'm going to stand over there until you are done."
She doesn't hate you. She heard the expression and she's ticked off about something, anything - like all kids. So she uses screaming to get out her frustration and get more attention.
Try, as hard as it is, not to make this about your husband vs. you. Believe me, that's not what it is. And it won't last.