Stop writing web firmware
This has been a problem for a long time. It was a problem with jQuery, it was a problem with AngularJS, it is a problem right now with Angular, Aurelia, Vue, and React. None of these frameworks are at fault, but there is a huge industry-wide issue with people writing all of their code inside of the framework. Please… stop writing web firmware!
If you have an app that calculates monthly payments for a mortgage, the code that performs these calculations should not reference any of these web frameworks. The majority of your code should be entirely unaware of whether it will be used in an Angular app or a React app.
Invest in your code
Placing most of your code outside takes minimal effort, especially if you’ve been writing clean back-end code half your life. It is especially easy when things like modules and module loaders arrive to give you an easy way to organise and load your code when you need it. So spend the 20 seconds it takes to place that important algorithm in a module, rather than in your Angular controller.
Firmware Upgrade image Wikimedia