1
I still know little of Angular and know only the basics, look at the code snippet:
listarTodas(): Promise<any> {
return this.http.get(this.cidadesUrl)
.toPromise()
.then(response => console.log(response.json()));
}
Look at the way out!
I would like to know how to only print the attribute values code.
I would also like to know how to only print values that the code be equal to 1.
I’m only asking for help here because I’ve made several unsuccessful attempts, I’ve searched the Angular documentation on the internet on blogs and forums and I haven’t found it, I really need help!