user-profile-detail.component.ts 643B

12345678910111213141516171819202122232425
  1. import { Component, OnInit } from '@angular/core';
  2. import { ActivatedRoute } from '@angular/router';
  3. import { IUserProfile } from 'app/shared/model/user-profile.model';
  4. @Component({
  5. selector: 'jhi-user-profile-detail',
  6. templateUrl: './user-profile-detail.component.html'
  7. })
  8. export class UserProfileDetailComponent implements OnInit {
  9. userProfile: IUserProfile;
  10. constructor(private activatedRoute: ActivatedRoute) {}
  11. ngOnInit() {
  12. this.activatedRoute.data.subscribe(({ userProfile }) => {
  13. this.userProfile = userProfile;
  14. });
  15. }
  16. previousState() {
  17. window.history.back();
  18. }
  19. }