Hi every one , i tried to create my own json file to use to verify login , then created a provider called " redditdata.ts" to get the data from my json file (professeur.json) , i got in an observable correctly when i open the console , but i want to retrieve the password and the username , wich i will use in my login verification , how can i do that please ?? , thanks , this is my code below …
redditdata.ts ( the provider to acess my json file)
ionViewDidLoad() {
this.redditService.getRemoteData().subscribe(data => {
console.log(data.results[0].username);
console.log(data.results[1].password);
//Any further operations here you want to perform on data when it comes in
});
}