Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229111

Adding "Authorization" header in get request

$
0
0

@niallr you're totally right friend, the error was in my home.ts look

`
getData() {
this.service.getCauses()
.subscribe(
data => this.causes = data, <----- here is the problem
err => console.log(err)
);
}

I added someone, look

getData() {
this.service.getCauses()
.subscribe(
data => this.causes = data.causas, <----- here is the solution
err => console.log(err)
);
}

in my home.ts normally

{{ cause.name }}

`

now I would like to guard the user loggedin for example, edit profile yourself, how to make ?


Viewing all articles
Browse latest Browse all 229111

Trending Articles



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