I return the context and status code from Django rest API as follows
Admin.objects.get(email_id = request.data.get('email_id'), password = request.data.get('password'))
context = {'resp' : 'Login details are valid..!'}
return Response(context,status=status.HTTP_200_OK)
How can I access this status in angular?
I try this but I am getting undefined
this.apiCallService.admin_signup(fd).subscribe((response:any)=>
{
this.spinnerFlag = false;
console.warn(response.status);
----------
How to fix this issue?
console.log() =>
{resp: 'Account created successfully...!'}
console.log(response)?