Building the Component

Now, create new Typescript file named 'product-list.component.ts' under 'products' folder. Add this code under this file:

Code Structure
import { Component } from '@angular/core';

@Component({
 selector: 'pm-products',
 templateUrl: './product-list.component.html'
})
export class ProductListComponent {
 
}

Share this

Related Posts