Adding dynamic variable

Hi i’m New to ionic

in this i should get 2/400
where i’m extracting 2 from Product title and
400 from Product Price
How can i Get … this Sum

No need to try that out…
Work with custom product data types

export interface Product{
    title: string;
    price:  number;
    ......
}

The design of product data type description will help you do all the calculation needed to add / subtract cart items, total them, calculate final checkout total, taxes e.t.c

Product titles are very dynamic and this

will lead to untold misery.

There are numerous sample tutes online on angular shopping carts which will lead you in the right direction…

1 Like