Step 1: Use the trigonometric formula for the tangent of an angle in a right triangle:
\[
\tan \theta = \frac{\text{Height}}{\text{Shadow length}}.
\]
Step 2: Substituting the values:
\[
\tan \theta = \frac{2}{2} = 1.
\]
Step 3: Find the angle whose tangent is 1:
\[
\theta = \tan^{-1}(1) = 45^\circ.
\]
Thus, the angle of elevation is \( 45^\circ \).