Jafar As-Sadiq (may Allah show him mercy) said, "Anger is the door to all evil."
The Messenger of Allah (Peace and blessings be upon him) said, "Those who are merciful have mercy shown them
by the All-Merciful One (Ar-Rahîm):Show mercy to those who are on earth, then He Who is in heaven will show mercy unto you."
(Abu Dawud, Tirmidhi).
So bear in mind when you get angry that Allah subhanu wa ta'ala has more power over you and think.
You should leave the room or go our somewhere and cool down. Its best to bite the tongue when you get angry.