TypeScriptAST icon indicating copy to clipboard operation
TypeScriptAST copied to clipboard

Correction to allow change in inner element and insert after parent

Open POFerro opened this issue 4 years ago • 0 comments

Hi,

This correction allows us to have a change in an inner element and insert after father. Ex: Assuming this element { path: 'AlteracaoContrato/:alteracaoContratualId/:contratoId', data: { breadcrumb: { label: 'Lea.AlteracoesContratuais.PageTitles.Details' } as Breadcrumb }, children: ..., }, With this change I can perform changes do prop assignment: data: { breadcrumb: { label: 'Lea.AlteracoesContratuais.PageTitles.Details' } as Breadcrumb } and insert another routing element after, like: { path: 'addedElement', data: ..., children: ..., }, . With previous implementation text would be broken.

POFerro avatar Jul 29 '21 21:07 POFerro