Closed myatmin closed 3 years ago
When the form has a nested Array type. (Example: multiple cities and multiple country).
Array
If you use the root accessor, it has to be called /country/0/city/0/name.
/country/0/city/0/name
But fixed index does not work for the following requirement.
For example, City property will be based on its containing parent Country object property(countryCode, countryType).
City
Country
countryCode
countryType
../countryCode
../countryType
fixed by https://github.com/ng-alain/delon/pull/1281
What problem does this feature solve?
When the form has a nested
Array
type. (Example: multiple cities and multiple country).If you use the root accessor, it has to be called
/country/0/city/0/name
.But fixed index does not work for the following requirement.
For example,
City
property will be based on its containing parentCountry
object property(countryCode
,countryType
).What does the proposed API look like?
../countryCode
../countryType