Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Error in http map function on beta.4

$
0
0

@nanexcool wrote:

I'm getting an error on ionic serve after updating to Beta 4.

this.http.get(url)
        .map((res: Response) => res.json())
        .subscribe(res => {
          // do something with res
        },
        () => {
         // something
        });

Says "Unexpected token (60:17) while parsing file", right on "res: Response"

Did the way to do this change in Angular?

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>