Giter VIP home page Giter VIP logo

Comments (8)

jonrimmer avatar jonrimmer commented on May 5, 2024 3

I have hacked in support for upgrade/static into my copy of ng1-to-ng2. I also have a modified copy of sample-app-ng1-to-ng2 that shows how to use it.

Hopefully this will be useful to any looking for a temporary workaround, at least. I could tidy it up into a pull request together if @christopherthielen thinks the approach looks sound?

from angular-hybrid.

jonrimmer avatar jonrimmer commented on May 5, 2024

I have updated my hack a bit now I better understand how UpgradeModule works. You no longer need to call uiRouterNgUpgrade.setNg2Injector(), as it's possible to get the ng2 injector from the ng1 injector (the static upgrader just changed the name its provided under).

from angular-hybrid.

mischkl avatar mischkl commented on May 5, 2024

@christopherthielen is there any chance of using this patch (or the findings within it) to enable AOT support? (This is the last thing holding us back from integrating Angular 2 in our existing Angular 1 app.) ;)

from angular-hybrid.

vladtar avatar vladtar commented on May 5, 2024

+1

from angular-hybrid.

AymanNatsheh avatar AymanNatsheh commented on May 5, 2024

+1

from angular-hybrid.

RaphyLi avatar RaphyLi commented on May 5, 2024

@jonrimmer do you try recently your fork? Because a try to implement them in my project, but when upgrade the $uiRouter the injector is undefined.

from angular-hybrid.

jonrimmer avatar jonrimmer commented on May 5, 2024

@RaphyLi No, not for a while. There is a now an angular4 branch in this project. I would suggest trying that instead.

from angular-hybrid.

christopherthielen avatar christopherthielen commented on May 5, 2024

Thanks @jonrimmer.
I've merged your changes into master and released it as @uirouter/angular-upgrade version 3.0.1

from angular-hybrid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.