IA, has already given a fairly good comprehensive answer on Yoga’s perspective on anger.
I will add my 2 cents here. Anger is considered the most major negative emotion in Yoga, and in fact the the root of all negative emotions and highly destructive to the mind and the health in general. Ordinarily, we do not really see how anger could be the root of say lust, greed, worry, depression, conceit etc, but examine closely and you will find it plays a causative role. The root cause of all emotional and mental suffering is desire(one of the noble truths of Buddhism) That is because when we desire something honestly, if we do not get the object of our desire, it produces frustration and frustration builds up into anger. That anger can then manifest in the form of lust, because when we do not what we want easily, we may begin to lust after getting what we want. In most cases, what is really being expressed here is a lack of love and hence the anger of having no love. Anger can also manifest in the form of greed, because we want something so much we refuse to share it with another. Most of the time, this lack of sharing is born out of anger towards life and others. Anger may also manifest in the form of anxiety and worry, because when we want a certain outcome, we begin to fear a lesser outcome and hence we become angry about those outcomes.
In some way or the other anger plays a causative role in all mental and emotional suffering. Hence, to learn to manage anger or to even eradicate anger, is to effectively manage or eradicate all mental and emotional suffering. So there is no single magic bullet technique really to deal with anger, eradicating anger in fact informs the main purpose behind Yoga and why the Yoga system was developed in the first place(to end all suffering) The simple answer to your question then is practice Yoga. The more you practice the Yoga system the more you will gain freedom from anger, and generally all kinds of mental and emotional suffering. It is not a case of following a few Yoga techniques, practicing some canned routine or applying a formula whenever anger arises, it is a case of sincerely and diligently practicing and integrating the system of Yoga into your life.
The philosophy of why Yoga works cannot be exhaustively dealt in a single reply, but I can present a you a very general in one line gist of it: Yoga trains your your mind to be less reactive and more proactive. The more you practice, the less reactive your mind will become and more proactive. The emotional anger response is triggered by a thought in your mind when certain kinds of stimulus presents itself, which is a behaviour you have learned over time such that this particular thought has now become associated with that emotional response and it has a become subconscious habit of your mind and body. In fact, if its over a very long time, it can go to the level of unconscious habit. Now, while it is relatively easier to deal with our conscious habits and changing our responses, it is more difficult to deal with habits that we are not aware of. The principle of Yoga then is to expand your awareness to bring the subconscious and the unconscious under your conscious control, like a torchlight illuminating the darker areas of the room so you can see the content.
Please remember this is not going to happen overnight, because we are dealing here with an issue that is deep-seated in your unconscious mind. However, through the constant practice of Yoga and its multipronged system which attacks the mind from every angle, you will begin to notice your habits more, gain more freedom between stimulus and response, and eventually be able to eradicate the unconscious causes completely and be completely free of anger. Your success depends on how sincere, focused and determined your practice is.