Base solution for your next web application
Open Closed

Migrate from ng-1 to ng-2 ASP.netZero #2421


User avatar
0
sampath created

Hi,

My client wants to purchase a latest ng-2 version of ASP.netZero. But we have developed an app using ng-1 version of ASP.netZero. So we need to migrate that code base to ng-2 version.So can you tell me the best possible way to do that? Thanks.


6 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sampath,

    As you know, angular1 and angular2 are totally different. You can do this but it will take some time.

    We also moved from angular1 to angular2 for AspNet Zero and it took almost 3 months. But, for now you will have a ready to run angular2 app and you will need to move only the parts you have added for angular1 app. Probably this will be easier but there is no automatic way for this. At least we don't know one :).

  • User Avatar
    0
    sampath created

    Hi ismcagdas,

    Can you please share the steps which you have followed when you migrated it from ng-1 to ng-2? Any doc or something like that? Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @sampath,

    Unfortunately, we don't have such a document or list of steps. If you decide to do this and if you have any problems on the way we can try to help you.

  • User Avatar
    0
    sampath created

    Hi ismcagdas,

    Did you use this doc <a class="postlink" href="https://angular.io/docs/ts/latest/guide/upgrade.html">https://angular.io/docs/ts/latest/guide/upgrade.html</a> or have you rewritten all without considering that doc? What is your advice for me? Shall I start to rewrite everything again according to the ABP ng-2 version's architecture or is there any upgrade path? According to your experience which one is best suited for me.My app is still in development mode. Please tell me the best method which I can follow without too many issues in the future.Thanks.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    We actually didn't follow this document. You don't need to rewrite all of your codes.

    You can use most of the js codes in your angular1 project but you need to modify it to match with angular2. As I said, we didn't follow this document but you can give it a try.

    One more thing here is, angular1 project uses angular ui-grid but angular2 uses jtable. This might take more time for you.

  • User Avatar
    0
    sampath created

    Hi ismcagdas,

    Can you give me the Angular2 jtable component's url (git repo or else)? Thanks.