Page MenuHomec4science

profile.component.ts
No OneTemporary

File Metadata

Created
Wed, Jul 30, 13:05

profile.component.ts

import { Component } from '@angular/core';
import { AuthenticationService, UserDetails } from '../authentication.service';
@Component({
templateUrl: './profile.component.html'
})
export class ProfileComponent {
details: UserDetails;
constructor(private auth: AuthenticationService) {}
ngOnInit() {
this.auth.profile().subscribe(user => {
this.details = user;
}, (err) => {
console.error(err);
});
}
}

Event Timeline