【发布时间】:2016-01-04 05:12:49
【问题描述】:
我正在构建一个移动应用程序,它是网络应用程序的一个端口,并且我正在尝试创建骨架。
我有一个管理中心,其中包含许多不同的视图,它们共享一个共同点,它们显示所有寄存器、创建、更新和删除。例如,我有一个用户部分,第一页显示所有用户,然后有一个按钮用于创建和一个用于发送到不同视图的更新。
项目框架应该是这样的:
/users
users.html // show all users
users_create.html // creates user
users_update.html // update specific user
users_detail.html // show specific user
/posts
posts.html
posts_create.html
posts_update.html
posts_detail.html
/communities
communities.html
communities_create.html
communities_update.html
communities_detail.html
.... much more the same for other sections
我的问题是,用 ionic 构建它的最佳方法是什么?拥有所有这些文件夹或只有一个公用文件夹并通过将参数传递给路由来解决所有问题(字段数、字段名称等)?
如果我没有很好地解释它,我很抱歉,但我希望你能明白我想说什么。
谢谢!
【问题讨论】:
标签: ionic-framework ionic project-structure