Relative Content

Tag Archive for javascriptangulartypescript

AlphaNumeric Sorting Typescript

Input -> const s = [‘2.1.1.a’, ‘2.1.a’, ‘2.1.1.d’, ‘A2.2’, ‘A2.1′, 2.1.1.c’, ‘2.1.b’, ‘2.1.1.b’]

update table to different currency rate

I have a primeng table with a dropdown for currency change. The data being in USD and dropdown has different option to update the data to different the currency rate . I have the logic that can update the data to different currency but here I am facing one challenge i.e. whenever I am selecting the currency option I am loosing the original data(i.e) in USD. How to retain the original data ?