I have been trying to use ng-upgrade as an upgrade strategy to angular2 with limited success, I have successfully added an angular2 app and downgraded it's components, but the implementation is not very flexible.
I get an error saying
ReferenceError: MainModule is not defined
It seems like UpgradeAdapter must be instantiated in the same file as the angular2 module declaration - which is a problem when introducing multiple, separate modules with independent downgrades.
I guess my question is... is it the correct way to utilize UpgradeAdapter and if so is there a way to separate the adapter definition and the module definition into separate files?
plnkr demonstrating the issue: https://embed.plnkr.co/ZPw9BVBVSZjYbfzkAkpl/