Comments (7)
PingCode 的登录页是跳转的形式,不是一个子应用,不过你的场景我们也有,只要在子应用和登录应用之上加一个父路由组件即可,注册应用在父路由组件,所有子应用路由的父组件设置菜单和布局,你试试吧!
from ngx-planet.
感谢大佬及时解答,我尝试着处理一下。
ngx-planet 13版本支持子应用独立运行吗?有子应用独立运行的例子吗?
from ngx-planet.
暂时没有示例,子应用独立运行比较简单,只需要设置独立的入口 main 启动应用即可,难得是如果有使用到 Portal 共享的数据,需要自己模拟或者单独加载全局数据。
from ngx-planet.
非常感谢大佬的耐心解答,按照您提供的思路,已解决问题。
from ngx-planet.
from ngx-planet.
@youxinxie 各有利弊
方案1:每个子应用独立的团队负责,独立的 CI CD 流程,分开更合理,但是带来的问题是需要采用 npm 发共享模块,也就是业务组件库(我们采用的是此方案,需要做很多基建工作)
方案2:好处是开发快速,带来的问题是在一个仓储,多个团队维护起来可能有冲突
我建议人少项目初期的话采用方案2,项目可以快速推进,如果人多了以后分团队可能自然而然的会演变为方案1
from ngx-planet.
from ngx-planet.
Related Issues (20)
- appStatusChange observer changed status but not sync to planet.appsStatus
- Chunk file error in lazy loading HOT 5
- Load assets error will cause other preloaded apps to fail to bootstrap
- 能不能和@uirouter/angular一起使用? HOT 1
- when main app navigate url, current child app route 'CanDeactivate' guard navigate not blocked
- Release 13 Iteration Plan
- Upgrade Angular to 13
- TSlint => ESLint
- Build: Add node and npm to engines HOT 1
- Bump ngx-tethys t0 13.0.0-next
- Throw error when refresh one sub app with sandbox isolation enabled
- 子应用热替换不生效 HOT 7
- Add PlanetComponentOutlet like NgComponentOutlet dynamic rendering component of other app
- routing mismatch when routerPathPrefix is similar with other sub application HOT 2
- v15启动报错 HOT 3
- 无限循环加载主应用的js HOT 1
- PlanetComponentLoader supports direct register of component types and load with component selector
- 在子应用中使用路由时,浏览器后退需要点多次才可后退 HOT 1
- 使用angular17时候发现报错chunk-xxx.js找不到。 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ngx-planet.