ng-forward is the default solution for people who want to start writing code using Angular 2 conventions and styles that runs today on Angular 1.3+.
ng-forward is a collaboration between authors of previous Angular decorator libraries. Its development is assisted and promoted by the Angular team. Ng-forward can be used as part of an upgrade strategy, which may also include ng-upgrade.
We are targeting four types of developers:
Currently in the Alpha phase, please contribute: ng-forward issues
npm i --save ng-forward@latest reflect-metadata
From the words of Pete Bacon Darwin (@petebacondarwin), Angular 1 Lead Developer:
[We suggest] that ng-forward could be used as part of an upgrade strategy, which could also include ng-upgrade. I think the jury is still out on the very best strategy and I expect that there isn't a one size fits all solution.
[We give] equal sway to the two projects and I think there is value in developers considering both. [There] are a variety of options available, of which ng-forward plays a part; that ng-forward can also be used even whether or not upgrade is your aim, as it can make you ng1 code and development cleaner.
Conversion options will depend on the specific library you're using and the author of that library. However, all of the following library's authors were involved in creating ng-forward.
AngularDecorators - @MikeRyan52 (which is also the codebase ng-forward descended from)
A1Atscript - @hannahhoward
Angular2 Now - @pbastowski
NgDecorate - @Mitranim
The Angular 2.x API has changed a lot and is hopefully starting to stabilize. However, obviously there will be more changes before final release.
Our goal in ng-forward will be to adjust to changes and provide the same level of deprecation support and breaking changes as Angular 2.
No. Definitely not. In addition to some of the differences called out above, there are several other features that are simply not possible to implement using Angular 1.x as a base. We're trying to add what we can over time, but some things will just have to wait for Angular 2.x
Here's an example of the steps you might take:
Our goal is to support the ES5 syntax used by Angular 2.x. Currently, this part of ng-forward is not well developed but we intend to support it in the future. Follow this issue: https://github.com/ngUpgraders/ng-forward/pull/60
Core contributors so far are @MikeRyan52, @timkindberg, @petebacondarwin, and @hannahhoward