client ng code