A Regular Expression to Convert PLATFORM.moduleName in Aurelia to Aurelia 2 Compatible Route Syntax - I Like Kill Nerds

added by JavaScript Kicks
6/26/2023 2:40:36 PM

287 Views

When migrating an Aurelia 1 application to Aurelia 2 recently, I had to deal with many routes I needed to convert tediously. As you might have discovered, the Aurelia 2 @aurelia/router is different to the Aurelia 1 router. Not wanting to change 50+ manual PLATFORM.moduleName values, I opted for a regular expression.


0 comments