TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Hacker News written with Angular 2.0

47 点作者 hswolff大约 10 年前

16 条评论

error54大约 10 年前
Is everyone missing the point of this? It&#x27;s a proof-of-concept app using an alpha[1] framework that, in a year or two, will likely be one of the dominant frameworks on the web. I for one find real examples like this much more useful than underwhelming &quot;Todo&quot;[2] examples. Yes, it&#x27;s slow. Yes, it has lots of bugs but hell, at least the author is giving it a shot. I just hope they write a decent blog post about it with some of the lessons learned.<p>1- <a href="https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular&#x2F;blob&#x2F;master&#x2F;package.json#L3" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular&#x2F;blob&#x2F;master&#x2F;package.json#...</a><p>2- <a href="http:&#x2F;&#x2F;todomvc.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;todomvc.com&#x2F;</a>
darthdeus大约 10 年前
This is interesting, when I opened the link I thoguht to myself &quot;this might be a nice and faster way to browse HN&quot; ... but wow, this thing I slow. Not just slow, but the back button isn&#x27;t working as well. Or maybe it is, but it loads the whole content again when you click back?
评论 #9405488 未加载
评论 #9405560 未加载
评论 #9405527 未加载
gfosco大约 10 年前
Taking something simple and making it complex and limited, with Angular 2.0.
评论 #9405406 未加载
jdotjdot大约 10 年前
Thanks so much for sharing this. I&#x27;ve been waiting a while to see something complete written in Angular 2.0 to see what it looks like.<p>Really enjoyed looking through the source on this.
评论 #9405567 未加载
ralusek大约 10 年前
To people who are complaining that this is slow, please understand that<p>1. Doesn&#x27;t have to do with Angular 2. Doesn&#x27;t even have to do with a single page implementation<p>I made a really shit take on a single page reddit client, and I&#x27;m sure you&#x27;ll see that the browsing experience is actually quite nice (and much faster than using native reddit). This was written in Angular 1.3, and Angular 2.0 is MUCH faster.<p><a href="http:&#x2F;&#x2F;bredd.it.s3-website-us-west-1.amazonaws.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;bredd.it.s3-website-us-west-1.amazonaws.com&#x2F;</a><p>My point is that implemented correctly, even a content site like reddit or hackernews could work quite well with a single-page implementation. Don&#x27;t blame Angular for this demo, its server responses are just impossibly slow
评论 #9406883 未加载
Geee大约 10 年前
This is a great example why you shouldn&#x27;t use a client-heavy stack for a site like HN. You could, in theory, make something that&#x27;s a bit better than original HN, but it requires way more work and&#x2F;or quite possibly something else than Angular.
lightningstorm大约 10 年前
The repeated animation for each content is very annoying. Would be better to have a single spinner for the whole page.
bikamonki大约 10 年前
Much slower, why?
评论 #9405362 未加载
评论 #9405472 未加载
评论 #9405348 未加载
seba_dos1大约 10 年前
That&#x27;s exactly the purpose one shouldn&#x27;t use Angular for.
pdkl95大约 10 年前
Seems to be serving a broken page...<p><pre><code> &lt;div class=&quot;bodyContainer&quot;&gt; &lt;hacker-news&gt;&lt;&#x2F;hacker-news&gt; &lt;&#x2F;div&gt;</code></pre>
评论 #9405484 未加载
评论 #9405479 未加载
mambodog大约 10 年前
An &#x27;isomorphic&#x27; approach would really help with that first page load time. Here&#x27;s one I built with isomorphic React: <a href="http:&#x2F;&#x2F;hackernewsmobile.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;hackernewsmobile.com&#x2F;</a><p>(source: <a href="https:&#x2F;&#x2F;github.com&#x2F;jsdf&#x2F;hacker-news-mobile" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jsdf&#x2F;hacker-news-mobile</a>)
评论 #9405476 未加载
评论 #9405621 未加载
criswell大约 10 年前
Here is a Hacker News clone done with Vue: <a href="http:&#x2F;&#x2F;yyx990803.github.io&#x2F;vue-hackernews&#x2F;#&#x2F;news&#x2F;1" rel="nofollow">http:&#x2F;&#x2F;yyx990803.github.io&#x2F;vue-hackernews&#x2F;#&#x2F;news&#x2F;1</a><p>I find it easier to follow if you&#x27;re looking around for alternatives.
Hobotron1大约 10 年前
Doesn&#x27;t work with JavaScript disabled. =P
thrownaway2424大约 10 年前
The perfect indictment of Web development these days.
bitwize大约 10 年前
(gruff Solid Snake voice)<p>The web... has changed.
trustfundbaby大约 10 年前
And its better ... how?