I don't think that you can "teach" a 2 year old anger management, but don't be alarmed-I know you've heard of the "terrible twos" well, guess what--you're there.
Don't be surprised that your precious 2 year old will lash out and shock you by laying in the floor in public, refusing to move, throwing things across the room or just generally shocking you with something new, out-of-control behavior. It's just part of growing up.
You will remain calm, not be shamed by watchful eyes (they have either been there or will be there) and take control of the situation.
As your child develops, matures and realizes that you are in control, it will pass, gradually, but it will pass.
Look at the world through your child's eyes for a moment--so far, when they needed something as an infant, they would cry out and you would come, change the diaper, give a bottle, or whatever they needed, you responded by them crying out. Now that your child is older and exploring communication and also starting to realize that "the world does not revolve around them" they naturally lash out. They will "test" you to see what they can get away with and how far it will go. As long as you stay calm and stick to your guidelines and rules they will adjust properly and soon will learn that screaming did not change your mind, it will stop and your precious 2 year old will probably be a precious 3 or 4 year old.
If you experience unusual situations or unable to get control of this, speak to your pediatrician, but I don't think you have anything to worry about, just appreciate your little one, reassure them of your love and it will all work out, just in time for another phase of maturing.