import { Component } from '@angular/core';
import { Product } from './product';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
data: Product[] = [
{
"id": "1000",
"code": "GFG111",
"name": "JAVA",
"description": "Programming language",
"image":
'https://media.geeksforgeeks.org/wp-content/cdn-uploads/Java.png',
"price": 6500,
},
{
"id": "1001",
"code": "GFG555",
"name": "Angular JS",
"description": "Front End Development",
"image":
'https://media.geeksforgeeks.org/wp-content/cdn-uploads/20210322182256/AngularJS-Tutorial.png',
"price": 700,
},
{
"id": "1002",
"code": "GFG777",
"name": "CSS",
"description": "Style Sheet",
"image":
'https://media.geeksforgeeks.org/wp-content/cdn-uploads/20210203171024/CSSTutorial.png',
"price": 2900,
},
{
"id": "1003",
"code": "GFG999",
"name": "HTML",
"description": "HTML Development",
"image":
'https://media.geeksforgeeks.org/wp-content/cdn-uploads/20220401124017/HTML-Tutorial.png',
"price": 3100,
},
]
sourceProducts: Product[] = this.data;
targetProducts: Product[] = [];
}