我应该为管理员和用户创建两个 Angular 项目吗? [英] Should I create Two Angular projects for Admin and Users?

查看:22
本文介绍了我应该为管理员和用户创建两个 Angular 项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为后端开发 Spring Boot Application,为前端开发 angular 6.我将在 angular 中包含两个 html 模板,第一个用于管理,第二个用于用户.那么,我应该创建两个 Angular 项目,还是只创建一个包含管理员和用户两大组件的项目?

I'm working on Spring boot Application for the back-end and angular 6 for the front-end. I'm going to include two html templates in angular, the first one is for the Administration and the second One for the users. So, should I create two Angular projects or only one project and contains two big components for the admin and the users?

推荐答案

视情况而定.

如果您有许多共享页面/组件,我会设置一个具有良好模块分离和保护设置的单个项目.

If you have many shared pages/components i would setup a single project with a good module separation and guard setup.

如果不是这样,你可以做任何你喜欢的事情

If that's not the case you can do whatever you prefer

这篇关于我应该为管理员和用户创建两个 Angular 项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆