import { Component, OnInit } from '@angular/core'; import { UserService } from './components/UserEntity/user.service'; import { ManageDiscountCodeService } from './components/ManageDiscountCode/managediscountcode.service'; @Component({ selector: 'app-component', templateUrl: '../app/app.component.html', providers: [UserService, ManageDiscountCodeService] }) export class AppComponent implements OnInit { constructor(private userservice: UserService) { } ngOnInit(): void { } }