[AngularJS] Re: SyntaxError: Unexpected end of input

2018-04-12 Thread gulam mohammad
Even I was facing similar kind of issue and the solution provided has 
worked like a charm. Thanks for that.

On Wednesday, January 20, 2016 at 10:22:19 AM UTC+5:30, Adnan Salahuddin 
wrote:
>
> if I removed map function and parameter in Subscribe then update (http put 
> service) is working
>
> this.http.put(window.location.href.split('#')[0] + 'api/vacancy/' + 2, 
> JSON.stringify(updateVacancyValue), { headers: headers }).subscribe();
>
> I do not understand of any this.
>
>
> On Tuesday, January 19, 2016 at 9:08:36 PM UTC+5, Luís Loureiro wrote:
>>
>> Hi Adnan!
>>
>> I think this error might be related with JSON parsing, don't know if 
>> *JSON.stringify(updateVacancyValue)* or *res.json()*.
>> You could try to *console.log* both to see if the error is in fact 
>> related with JSON parsing.
>>
>> Regards,
>> *Luís Loureiro*
>>
>

-- 
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 angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.


[AngularJS] Re: SyntaxError: Unexpected end of input

2016-01-21 Thread Luís Loureiro
Nice to hear that you solved the problem.

Regards,
*Luís Loureiro*

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


[AngularJS] Re: SyntaxError: Unexpected end of input

2016-01-20 Thread Adnan Salahuddin
Never Mind! I got it
Thanks :)

On Wednesday, January 20, 2016 at 9:52:19 AM UTC+5, Adnan Salahuddin wrote:
>
> if I removed map function and parameter in Subscribe then update (http put 
> service) is working
>
> this.http.put(window.location.href.split('#')[0] + 'api/vacancy/' + 2, 
> JSON.stringify(updateVacancyValue), { headers: headers }).subscribe();
>
> I do not understand of any this.
>
>
> On Tuesday, January 19, 2016 at 9:08:36 PM UTC+5, Luís Loureiro wrote:
>>
>> Hi Adnan!
>>
>> I think this error might be related with JSON parsing, don't know if 
>> *JSON.stringify(updateVacancyValue)* or *res.json()*.
>> You could try to *console.log* both to see if the error is in fact 
>> related with JSON parsing.
>>
>> Regards,
>> *Luís Loureiro*
>>
>

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


[AngularJS] Re: SyntaxError: Unexpected end of input

2016-01-19 Thread Adnan Salahuddin
if I removed map function and parameter in Subscribe then update (http put 
service) is working

this.http.put(window.location.href.split('#')[0] + 'api/vacancy/' + 2, JSON.
stringify(updateVacancyValue), { headers: headers }).subscribe();

I do not understand of any this.


On Tuesday, January 19, 2016 at 9:08:36 PM UTC+5, Luís Loureiro wrote:
>
> Hi Adnan!
>
> I think this error might be related with JSON parsing, don't know if 
> *JSON.stringify(updateVacancyValue)* or *res.json()*.
> You could try to *console.log* both to see if the error is in fact 
> related with JSON parsing.
>
> Regards,
> *Luís Loureiro*
>

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


[AngularJS] Re: SyntaxError: Unexpected end of input

2016-01-19 Thread Luís Loureiro
Hi Adnan!

I think this error might be related with JSON parsing, don't know if 
*JSON.stringify(updateVacancyValue)* or *res.json()*.
You could try to *console.log* both to see if the error is in fact related 
with JSON parsing.

Regards,
*Luís Loureiro*

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