Learning Angular by rewriting existing app