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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

How I built a Hacker News client with Angular 2

10 点作者 MrAwesomeSauce超过 8 年前

4 条评论

daveroberts超过 8 年前
There are some other issues for users trying to follow along. I hit my next snag from moment.js not being imported, and not having the filters domain, amFromUnix and amTimeAgo not being found. I see you addressed these points later on in your post notes, kind of as an "excercise left for the user". After that point, I just read the article and stopped trying to follow along. Perhaps it wasn't your intent to make a step-by-step type article, but I'm just sharing the experience I had trying to go along one step at a time. I appreciated the article, especially because right now we're starved for Angular 2 content, and there's not a lot out there yet.
评论 #12587479 未加载
daveroberts超过 8 年前
Fails for me pretty early on:<p>ng set defaults.styleExt scss<p>Could not start watchman; falling back to NodeWatcher for file system events. Visit <a href="http:&#x2F;&#x2F;ember-cli.com&#x2F;user-guide&#x2F;#watchman" rel="nofollow">http:&#x2F;&#x2F;ember-cli.com&#x2F;user-guide&#x2F;#watchman</a> for more info. Cannot read property &#x27;serialize&#x27; of undefined TypeError: Cannot read property &#x27;serialize&#x27; of undefined<p>I installed watchman and received the same error<p>Looks like this has been reported elsewhere: <a href="https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular-cli&#x2F;issues&#x2F;1905" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;angular&#x2F;angular-cli&#x2F;issues&#x2F;1905</a>
评论 #12565485 未加载
MrAwesomeSauce超过 8 年前
I built a Hacker News client with Angular 2 (<a href="https:&#x2F;&#x2F;angular2-hn.firebaseapp.com" rel="nofollow">https:&#x2F;&#x2F;angular2-hn.firebaseapp.com</a>) and shared it here a short while ago (<a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12438119" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12438119</a>). Got some very useful feedback and thought it would be nice to write a post on how I built it. I go through building the entire app step by step from scratch solving each problem along the way.<p>As always, I hope you find it useful and would appreciate any feedback.
daveroberts超过 8 年前
Just a minor point, but your first stories.component.html snippet doesn&#x27;t include {{i}}, so the way it renders in the browser is different than your screenshot
评论 #12565458 未加载