Some reusable angular code.