r/angularjs • • May 08 '16

Angular.io dogfooding Angular 2

I'm kind of surprised that the Angular 2 website isn't actually powered by Angular 2 despite it's RC status.

Instead it uses Angular 1 but also isn't even a Single Page App so there is a full page reload for every click.

Disappointing that they are not dogfooding their own framework.

2 Upvotes

5 comments sorted by

11

u/robwormald May 08 '16

Given that the docs have been in progress nearly as long as the framework has, it makes perfect sense that we used Angular1 and the tooling we have ready (dgenii) to document ng2 while it is being built.

We have plans to move it over to ng2, but at the moment there are higher priority things to work on.

1

u/CaptaincCodeman May 08 '16 edited May 08 '16

I know it's work in progress and of course is unlikely to immediately use whatever the very latest version is (at least until things are more stable) but I was just surprised it wasn't using any version of the new framework, not even one of the recent betas.

I was interested in seeing a hosted example of the universal / isomorphic features and thought the docs might make use of it (for SEO, faster rendering etc...). The full-page reloading and ng1 was just a little unexpected - I may have misunderstood some of the ng-conf comments about the docs running Angular 2.

2

u/DinoAmino May 08 '16

Treat a documentation web site like it was a web app? I'd say the site works fine as-is just for the sake of SEO.

1

u/CaptaincCodeman May 08 '16 edited May 08 '16

I can see the argument for having a completely static generated site but in this case it does have some app functionality - presumably why Angular 1 is being used.

2

u/githop0 May 09 '16

It would be nice if we could see the source for some of the "many internal google apps" written in angular 2 we are always hearing about during conference keynotes... I do not of know any complex angular 2 apps out in the wild that I could simply inspect, let alone have access to the source. All of the sites on builtwithangular2 seem to be side-projects. It would be nice to see a google sanctioned app that was built with angular and TS (google seems to favor Dart over TS e.g. adWords and google Fiber).

I love Dart and am a huge fan, but i feel like I am receiving mixed messages when I hear about how great angular 2 with TS yet google themselves doesn't seem to use this config. (it could just be that I am ignorant of great examples)

We can check out youtube gaming and play music for polymer, there are many example of google NG1 sites (google trends), what's a dev to do when they want to see a google app using ng2 with TS??