1

I have a pretty large AngularJS(v1.5) application which contains numerous controllers. I want to migrate the app to the latest Angular version(v7) using the upgrade module which runs both the old and the new frameworks together, allowing for an incremental approach to the upgrade. So my question is, do I need to convert all my controllers into component directives(introduced from v1.5+) before using the upgrade module to make my hybrid app work? Or can we first make the hybrid app with the controllers as it is and then convert each angularJS controller into angular components?

Another question related to the hybrid approach, the new files which I have been creating(related to the angular framework) are in typescript format. Do I need to convert all the old javascript files into typescript to make the hybrid app work?

1
  • Have you tried not converting it? Typescript eventually converts to plain JS, so there is no need. Commented Apr 17, 2019 at 8:37

1 Answer 1

1

You probably already read this but in case you haven't...

https://angular.io/guide/upgrade

under Preparation is says:

  • Follow the AngularJS Style Guide
  • Using a Module Loader
  • Migrating to TypeScript
  • Using Component Directives
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.