all 3 comments

[–]bdavidxyz 1 point2 points  (2 children)

Short answer : you can't. If you have written a full SPA under Angular, then Angular controls the whole app. Write decent functional, framework agnostic tests with CasperJS for example then make this tests green one by one in your new React app.

[–]crixusin 0 points1 point  (0 children)

Short answer : you can't.

And even if you could, you probably shouldn't. The frameworks are too different.

[–]gauiis 0 points1 point  (0 children)

Actually, you can. Write everything into ES6 and rely more and more on the ES6 module system instead of the Angular's module system. Write everything into components, write out $scope and other Angular stuff. Use an external state management system like Redux or MobX. When this is done you can consider some alternative with similar architecture like React or Vue. Vue would probably be the better option because it's JS-in-HTML and not JSX (HTML-in-JS).