Ahlushko

Untitled

Jun 15th, 2020
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import { Component, OnInit } from '@angular/core';
  2. import { Router } from '@angular/router'
  3. import { CompService } from '@services'
  4. import { NgxIzitoastService } from 'ngx-izitoast';
  5. import { SearchPipe } from '../search.pipe'
  6. @Component({
  7.     selector: 'app-header',
  8.     templateUrl: './header.component.html',
  9.     styleUrls: ['./header.component.css']
  10. })
  11. export class HeaderComponent implements OnInit {
  12.     public edit: any = {}
  13.     public add: boolean = false
  14.     public comp: any = {}
  15.     public properties = ['videoCard', 'CPU', 'motherboard', 'RAM']
  16.     constructor(
  17.         public pc: CompService,
  18.         ) {}
  19.     update(id) {
  20.         this.edit._id = id
  21.         this.pc.update(this.edit)
  22.     }
  23.     ngOnInit(): void {
  24.     }
  25. }
Add Comment
Please, Sign In to add comment