You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
718 B
30 lines
718 B
import { Component, OnInit } from '@angular/core';
|
|
import { Router } from '@angular/router';
|
|
import { UserService } from './auth/service/user.service';
|
|
import { ProductsService } from './service/products.service';
|
|
|
|
@Component({
|
|
selector: 'app-root',
|
|
templateUrl: './app.component.html',
|
|
styleUrls: ['./app.component.css']
|
|
})
|
|
export class AppComponent implements OnInit{
|
|
title = 'DailyCart';
|
|
|
|
username:any;
|
|
uid!:any;
|
|
constructor(private route : Router,private productService : ProductsService,private userService : UserService)
|
|
{
|
|
|
|
}
|
|
|
|
ngOnInit(): void {
|
|
|
|
|
|
}
|
|
|
|
onProfile(){
|
|
this.uid = window.sessionStorage.getItem('userid');
|
|
this.route.navigateByUrl('/profile/'+this.uid);
|
|
}
|
|
}
|