Knowing an appropriate way to deal with it is of the utmost importance, however. I personally grab my trusty pillow, head into my closet and scream my brains out into the pillow. You have no idea how much better I feel after this, and how much more reasonable I am as well. Now, the next thing I would do is some self evaluation as to why the anger turned up in the first place. Next, ask yourself why your child is doing this to you.
Insecurity is usually the reason why people attack each other.
Then, ask yourself if your child is doing this to make you mad, and what you are benefiting by getting mad about this. Finally, after you have asked yourself some prime questions, try your best to be a wise user of this energy. Use it for constructive, not destructive purposes. At the same time, try to have compassion for your children, bearing in mind that they are in conflict and finding it difficult to resolve their conflict. With this understanding and compassion, you will surely be able to use the situation for self clarity and to understand your children better.