Amongst peace-loving folks, anger gets a bad rap. This is because anger is usually present when violence is committed.
But anger is a form of energy that can be applied constructively, too. That was Nature's intent.
Anger arises naturally whenever you perceive a loss of personal freedom or power. It's there to energize you on your way back to your natural state of empowerment.
If you get angry about some behavior of your child, and then you scold, punish, or yell at him or her, you're simply misdirecting the anger energy.
Just remember: the anger is there to uplift you, not to put down your child (or yourself). It's there to help you break free from disempowering thoughts and reconnect with your Authentic Power.