Angular controller snippet