Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component, OnInit } from '@angular/core';
- import { Router } from '@angular/router'
- import { CompService } from '@services'
- import { NgxIzitoastService } from 'ngx-izitoast';
- import { SearchPipe } from '../search.pipe'
- @Component({
- selector: 'app-header',
- templateUrl: './header.component.html',
- styleUrls: ['./header.component.css']
- })
- export class HeaderComponent implements OnInit {
- public edit: any = {}
- public add: boolean = false
- public comp: any = {}
- public properties = ['videoCard', 'CPU', 'motherboard', 'RAM']
- constructor(
- public pc: CompService,
- ) {}
- update(id) {
- this.edit._id = id
- this.pc.update(this.edit)
- }
- ngOnInit(): void {
- }
- }
Add Comment
Please, Sign In to add comment