I was learning about torque, angular momentum etc. using polar coordinates. In the lecture, I learned that the unit vectors are $\hat{}$ and $\hat{r}$, where is the angle and r is the distance from the origin (i.e. the radius).
I can understand that r has a direction which is along the radius, therefore it is a vector. However, I don't understand why can by a vector: is an angle. How can an angle have a direction?
Thank you.
Your confusion takes its origin in the notation. Actually, $\hat{\phi}$ is not an angle. Indeed, $\{\hat{r},\hat{\phi}\}$ forms a basis of $\Bbb{R}^2$, made of orthogonal unit vectors, like the canonical cartesian basis $\{\hat{x},\hat{y}\}$. However, this notation tends to conflate the basis vectors with the associated coordinates.
Let's take a point $P = (x,y) = (r,\phi)$ in the plane with cartesian and polar coordinates. Then, $\vec{OP} = x\hat{x} + y\hat{y} = r\hat{r}$. For instance, the abscissa $x$ may be interpreted as a length and a horizontal position, but $\hat{x}$ is only a unit vector and nothing else. The same goes for polar coordinates. It is also to be noted that the polar coordinates are defined in such a way that points of the plane are reached radially, so that $\hat{\phi}$ is not even needed.
Where has the angular coordinate $\phi$ defining the point $P$ gone ? Actually, it is "hidden" in $\hat{r}$. Indeed, coming back to the original cartesian coordinates, one has : $$ \vec{OP} = r\hat{r} = \sqrt{x^2+y^2} \left(\cos\phi\,\hat{x} + \sin\phi\,\hat{y}\right) $$
So, what's the use of $\hat{\phi}$ ? It is only here to complete the basis by representing a (counter-clockwise) direction orthogonal to $\hat{r}$, namely $\hat{\phi} = -\sin\phi\,\hat{x} + \cos\phi\,\hat{y}$ in consequence $-$ in fact, the polar basis $\{\hat{r},\hat{\phi}\}$ is obtained by rotating the cartesian basis $\{\hat{x},\hat{y}\}$ by an angle $\phi$.
This misleading mixing may be avoided by renaming the basis vectors by $\hat{e}_r$ and $\hat{e}_\phi$ or even $\hat{e}_1,\hat{e}_2$.