4 ms·
I'm actually migrating a large (poorly written) angular 1 project to angular 2 using the adapter. For the most part, its pretty straightforward. Unfortunately
by livingparadox 10y ago
I'm actually migrating a large (poorly written) angular 1 project to angular 2 using the adapter.
For the most part, its pretty straightforward. Unfortunately, if your ng1 code still uses ng-controller extensively, you'll probably be stuck at the rc4 release of Angular 2. Everytime I've tried to upgrade past that point, none of the controllers initialize.
Aside from that and the inability to mix attributes and directives from different versions, I haven't really dealt with any major problem upgrading. For any services you have which are returning promises instead of observables, I highly recommend creating a re-usable adapter class as it allows you to drop-in replace legacy implementations with new observable based services without changing the consuming ng1 code.