R
R
Roman Rakzin2020-06-12 00:11:41
Angular
Roman Rakzin, 2020-06-12 00:11:41

How to create a generic way to set parameters in Angular routing?

I have an object with values ​​and can be of different lengths by type

ParametersObj ={
       param1:'aaa',
       param2: 'bbb'
    }


or better with an array, for example: `Parameters = [{paramName:'param1', paramValue:'aaa'}

]

mysite.com?param1=aaa&param2=bbb

` another value and parameter will be added, so that the url will change.
How to do this?
And the reverse question - to count everything at once into an array?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question