The default solution for those that want to write Angular 2.x style code in Angular 1.x
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: - Those who do not know if or when they will upgrade to Angular 2, but who want all the benefits of organizing their code into Components - Those who are starting Angular 1.x projects today who want the easiest possible upgrade path to Angular 2 and the best Angular 1 code. - Those who want a production safe way to prepare their Angular 1 projects now for the easiest possible upgrade path later. - Those who are actively migrating to Angular 2 and would like to use ng-forward as the first step in their migration strategy. Once you've used ng-forward to update all the syntax in your project, you can then optionally use ng-upgrade or go straight to Angular 2.
Currently in the Alpha phase, please contribute: ng-forward issues
sh npm i --save [email protected] 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
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