-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs(api/upgrade): add docs about AOT upgrade function helpers * docs(api/recipes/upgrade): add docs how to upgrade with new upgrade/static function helpers * docs(README): point to new v4 plunker and update rxjs version Closes #176
- Loading branch information
Showing
9 changed files
with
935 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ Behind the scenes it uses ES.next decorators extended by TypeScript (which adds | |
## Quick start | ||
|
||
- [Plunkr][plunker-3.x] - try it out in your browser | ||
- [Plunkr][plunker-4.x] - try it out in your browser | ||
- [Playground][playground] - live docs examples and mandatory TODO app example | ||
- [Production ready starter kit][ngParty-Angular-1-scaffold] - Starter Kit ready for production by ngParty team powered by Webpack | ||
|
||
|
@@ -218,7 +218,7 @@ ng-metadata requires certain polyfills in the application environment. We instal | |
|
||
Install peer dependencies by running: | ||
|
||
`npm i --save [email protected].0-rc.1` | ||
`npm i --save [email protected]` | ||
|
||
**rxjs** - a polyfill for the Observables specification currently before the TC39 committee that determines standards for the JavaScript language. Developers should be able to pick a preferred version of rxjs (within a compatible version range) without waiting for ng-metadata updates. | ||
|
||
|
@@ -271,7 +271,8 @@ We typically add a TypeScript configuration file (`tsconfig.json`) to our projec | |
|
||
#### TypeScript Declaration Files | ||
|
||
Many JavaScript libraries such as jQuery, the Jasmine testing library, and Angular itself, extend the JavaScript environment with features and syntax that the TypeScript compiler doesn't recognize natively. When the compiler doesn't recognize something, it throws an error. | ||
Many JavaScript libraries such as jQuery, the Jasmine testing library, and Angular itself, extend the JavaScript environment with features and syntax that the TypeScript compiler doesn't recognize natively. | ||
When the compiler doesn't recognize something, it throws an error. | ||
|
||
We use TypeScript type declaration files — *d.ts files* — to tell the compiler about the libraries we load. | ||
|
||
|
@@ -298,21 +299,7 @@ That's it! You are good to go! | |
|
||
## Why? | ||
|
||
There is already an existing project, which gives us Angular 2 like syntax for Angular 1, [ng-forward](https://github.com/ngUpgraders/ng-forward) | ||
|
||
While I respect all the hard work of the `ng-forward` team, there were things that I didn't like about their solution. | ||
|
||
Anyway that project (ngForward) is unmaintained with old/wrong angular 2 API's and isn't production ready at all. | ||
|
||
- it tries to mirror angular 2 with lots of under the hood abstractions which is just not feasible because there are major differences, how things work in ng1 an ng2 | ||
- it tries to do a lot unnecessary work, which was never finished ( support ES5/ES6 like angular 2 does ) | ||
- doesn't provides angular 2 like DI via constructor parameters because `babel` just won't support parameter decorators | ||
- forces you to rewrite templates, so you can't be just 100% sure that your code will work as before | ||
|
||
> although we started a discussion about [collaboration](https://github.com/ngUpgraders/ng-forward/issues/138) I just don't think after further analysis, that we can merge | ||
our project one way or another.' | ||
|
||
so those are just few reasons why I made **ng-metadata**. | ||
those are just few reasons why I made **ng-metadata**. | ||
|
||
**ng-metadata:** | ||
- can be used as part of an upgrade strategy, which may also include *ng-upgrade*, when migrating to Angular 2 | ||
|
@@ -342,5 +329,6 @@ if you aren't a member just join us [ngParty slack](https://ngparty.herokuapp.co | |
[plunker-1.x]: https://plnkr.co/edit/s2lYnI | ||
[plunker-2.x]: https://plnkr.co/edit/7Fr7oO | ||
[plunker-3.x]: https://plnkr.co/edit/Bds0Bk | ||
[plunker-4.x]: https://plnkr.co/edit/hsz8KF | ||
[playground]: https://github.com/ngParty/ng-metadata/tree/master/playground | ||
[ngParty-Angular-1-scaffold]: https://github.com/ngParty/Angular1-scaffold |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.