I am currently working on Angular Momentum part of Gasiorowicz's QM. The writer says that
\begin{align} L_z |l, m\rangle &= \hbar m|l, m\rangle \\ \Rightarrow \langle\theta,\phi|L_z|l, m\rangle&=\hbar m\langle\theta,\phi|l, m\rangle \\ L_z &=\frac{\hbar}{i}\frac{\partial}{\partial \phi} \\ \Rightarrow \langle\theta,\phi|L_z|l, m\rangle&= \frac{\hbar}{i}\frac{\partial}{\partial \phi}\langle\theta,\phi|l, m\rangle \end{align} The first two equality is easily understood but I don't understand why $\frac{\partial}{\partial \phi}$ can just move to the left of $ \langle\theta,\phi|$ though they were originally in the center.