TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How I built a Hacker News client with Angular 2

10 pointsby MrAwesomeSauceover 8 years ago

4 comments

daverobertsover 8 years ago
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 未加载
daverobertsover 8 years ago
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 未加载
MrAwesomeSauceover 8 years ago
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.
daverobertsover 8 years ago
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 未加载