Thank You Sander , I changed the response into JSON Response as you said .
Now it is perfectly working .
This is the edited code in my server page .

<?php
header('Access-Control-Allow-Origin: *');
header('Content-Type: application/json');
$user = $_POST['email'];
$pass=$_POST['password'];
$result = $user.$pass;
$data = $result;
echo json_encode($data);
?>

thanks a lot , you saved my time

On Sat, Nov 4, 2017 at 2:02 PM, Sander Elias <[email protected]> wrote:

> Hi Vinu,
>
> Well, your angular part is correct and should pick up the data, if it is
> not there, the server is not sending it. or at least not in the right
> format, are you sure you are sending off a JSON response?
>
> regards
> Sander
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Angular and AngularJS discussion" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/angular/VJ0UhdUhcR0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/angular.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
*Vinu Prasad*

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to