Move [inlineSVG] to <svg-icon> in templates
ProprietaryReplaces the [inlineSVG] directive of ng-inline-svg with an <svg-icon [src]> of angular-svg-icon inside the element it was on, carrying onSVGLoaded over from Angular 18 on and dropping a cacheSVG of true, since angular-svg-icon always caches. The SVG ends up one element deeper, inside <svg-icon>, so a style that selects it as a direct child needs adjusting. An element that uses another option of ng-inline-svg, or whose content the directive would replace, is flagged instead. Only projects on Angular 7 or later, as their package.json tells within one major, are migrated.
org. openrewrite. angular. nginlinesvg. MigrateInlineSvgTemplatesmod run . --recipe= org. openrewrite. angular. nginlinesvg. MigrateInlineSvgTemplatesInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.