@if (isLoading) {
}
Product Management
@if (products && products.length > 0 || showAddForm) {
Product ID
Product Name
Price
Created Date
Details
@if (showAddForm) {
Auto-generated
₹
{{ currentDate | date : 'fullDate' }}
@if (addProductImagePreview) { } @else {
NO IMAGE
}
Product Image
Product Name
Price ₹ Category @for (category of categories; track category) { @if (category !== 'All') { {{ category }} } }
@if (addFlashMessage) {
@if (addFlashMessage === 'success') { Product added successfully } @if (addFlashMessage === 'error') { Error adding product, try again! }
}
} @for (product of products; track trackByFn($index, product)) {
@if (getImageUrl(product.product_image)) { } @else {
NO THUMB
}
{{ product.product_id }}
{{ product.product_name }}
{{ product.price | currency : 'INR' : 'symbol' : '1.2-2' }}
{{ product.created_date | date : 'fullDate' }}
@if (selectedProduct?.product_id === product.product_id) {
@if (getImageUrl(product.product_image)) { } @else {
NO IMAGE
}
Product Image
Product Name Product ID
Price ₹ Created Date
Category @for (category of categories; track category) { @if (category !== 'All') { {{ category }} } }
@if (flashMessage) {
@if (flashMessage === 'success') { Product updated } @if (flashMessage === 'error') { An error occurred, try again! }
}
}
}
} @else {
There are no products!
}