update model and remove unuse component
This commit is contained in:
parent
5a84d89d5d
commit
baa66609ee
12 changed files with 12 additions and 330 deletions
|
|
@ -3,6 +3,7 @@ import { UserService } from 'src/app/core/services/user.service';
|
|||
import { HttpClient } from '@angular/common/http';
|
||||
import { User } from 'src/app/core/models/user.model';
|
||||
import { NgIf } from '@angular/common';
|
||||
import { initFlowbite } from 'flowbite';
|
||||
|
||||
@Component({
|
||||
selector: 'app-dashboard',
|
||||
|
|
@ -16,6 +17,8 @@ export class DashboardComponent implements OnInit {
|
|||
constructor(private _userService: UserService) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
initFlowbite();
|
||||
|
||||
this._userService.currentUser.subscribe((user) => {
|
||||
this.userInfo = user;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue