Re:Angular 2 Final Released
by namelezz on Thursday September 15, 2016 @01:49AM
(#12503747)
Do you know of any large projects that use Angular 2? I just want see how readable the projects are.
[ Parent
| on HN ]
Re:Angular 2 Final Released
by quaffapint on Thursday September 15, 2016 @08:46AM
(#12505613)
Not sure if this helps, but trying to learn Angular2 I wrote a weather app with it using RC5. It is not the cleanest and I never used Angular 1 so I can't do a comparison.
Re:Angular 2 Final Released
by lloyd-christmas on Thursday September 15, 2016 @11:26AM
(#12506953)
you can refactor those nested observables using mergeMap:
this._settingsService.settings$.mergeMap(settings => {
this.settings = settings;
return this._weatherService.getLatestWeather(this._location, settings);
})
.subscribe(
weather => this.weather = weather,
error => this.errorMessage = <any>error
);
Re:Angular 2 Final Released
by quaffapint on Thursday September 15, 2016 @02:07PM
(#12508379)
Thanks. Learning observables was definitely a little challenging, so I appreciate the insight.
Thanks you for sharing such a beautiful weather app.
Google AdWords - hope thats big enough.
A caveat: they are using the Dart fork (now maintained by the Dart team) which is not what this announcement is about. Not sure what the biggest Typescript app is.
As far as raw TypeScript apps, VS Code and TypeScript itself are pretty good examples.
https://github.com/Microsoft/vscode https://github.com/Microsoft/typescript
I asked around at ng-conf earlier this year, and nobody outside of the speakers were using Angular 2. I did some proper digging again a month or two ago and still couldn't find any examples of large NG2 projects in the wild.
Not very promising...
React on the other hand, I stumbled upon looking at the source of the Wall Street Journal the other day. It is everywhere now.
There is an example of an ng2 app using ngrx platform that is reasonably large -- ngrx is a redux using rxjs (more-or-less).
The Weather Channel. Lucidchart. Both in production, IIRC.
Granted, not open source, but definitely drives home the point that it is trusted in production environments.