TypeScriptAST
TypeScriptAST copied to clipboard
Correction to allow change in inner element and insert after parent
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.