before use ng
doing ajax