作者:拍友2502926823 | 来源:互联网 | 2023-01-22 15:32
Idecidedtouseangular-ui-routerasopposedtong-route,duetothestatefulroutingsupport.由于有状
I decided to use angular-ui-router as opposed to ng-route, due to the stateful routing support.
由于有状态路由支持,我决定使用angular-ui-路由器,而不是ng路由。
However, I'm a little puzzled on how to lay out and store my application components in a way that makes sense. Any ideas or examples that may help me out?
然而,我对如何布局和存储应用程序组件有一点疑惑,这是有意义的。有什么想法或例子可以帮助我吗?
Note: I'm using a component-based approach for my structure now. Which means, I've got e.g. "./components/ObjectSidebar". But I'm also very interested in imposing an 'overall application structure' consisting of 'HeaderController', 'MainPageController, FooterController, etc. Would I just include these components all within the same page? How would I structure my application in order to modularize all of the components under 'MainPageController' (which could then include my other components, such as 'ObjectSidebar', so on so forth.
注意:我现在使用的是基于组件的方法。也就是说,我有。”。/组件/ ObjectSidebar”。但是,我也非常感兴趣的是将“HeaderController”、“MainPageController、FooterController”之类的“总体应用程序结构”设置在同一个页面中。我将如何构造我的应用程序,以便将“MainPageController”(可以包括我的其他组件,比如“ObjectSidebar”,等等)模块化所有组件。
1 个解决方案