我正在构建一个移动应用程序,这是一个从Web应用程序的端口,我试图创建框架。离子大项目结构
我有一个管理中心,有许多不同的视图,共享一个共同的东西,他们显示所有的注册,创建,更新和删除。例如,我为第一页显示所有用户的用户提供了一个部分,然后有一个按钮用于创建,另一个用于发送到不同视图的更新。
该项目框架是这样的:
/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
我的问题是,什么是与离子建立这个最好的方法?拥有所有这些文件夹或只是一个公共文件夹,并通过传递参数到路由来解决所有事情(字段数,字段名称等)?
如果我没有很好地解释它,我会问你,对不起,但我希望你能理解我想说的话。
谢谢!