首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
爱意满满的作品展示区。
广告
V2EX
›
分享创造
又一个 Hacker News app, power by ionic (谁有 mac,编译个 ios 平台的试试能不能用呢)
fullstack0xyz
·
2015-03-19 23:00:15 +08:00
· 2918 次点击
这是一个创建于 3333 天前的主题,其中的信息可能已经有所发展或是发生改变。
数据用的是hackernews 的官方API
https://github.com/HackerNews/API。
comment部分遇到些麻烦,对Angular 不太熟,取comment需要递归、回调,没想到什么好办法,目前是一次性加载了所有评论,没有排序,求指导
欢迎试用
https://github.com/keith3/HN_app
:-)
第 1 条附言 ·
2015-03-20 09:00:41 +08:00
贴几张截图
http://webtest.qiniudn.com/hnindex.png
http://webtest.qiniudn.com/hndetail.png
http://webtest.qiniudn.com/hncomment.png
comment
ionic
hackernews
2 条回复
•
2015-03-22 20:53:10 +08:00
1
bolasblack
2015-03-22 19:03:40 +08:00
1
要递归应该可以用 ngInclude 来做,或者专门写一个 directive ,然后在 directive 里嵌套使用,不过我没有试过,你可以尝试一下
2
fullstack0xyz
OP
2015-03-22 20:53:10 +08:00
@
bolasblack
好的,我看一下
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
我们的愿景
·
实用小工具
·
2436 人在线
最高记录 6543
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 24ms ·
UTC 09:02
·
PVG 17:02
·
LAX 02:02
·
JFK 05:02
Developed with
CodeLauncher
♥ Do have faith in what you're doing.