Created
March 14, 2019 05:44
-
-
Save nitinknolder/a7500c140de63397c2ba5324cec60168 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class UserProfileComponent implements OnInit { | |
profileDataOfUser: IFixtureUserProfile; | |
insertObjectInArray = []; | |
constructor(private user: UserProfileService) { } | |
ngOnInit() { | |
this.getProfileData(); | |
} | |
getProfileData(): void { | |
this.user.getMockData().subscribe(data => { | |
this.profileDataOfUser = data; | |
this.insertObjectInArray.push(data); | |
}); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment