Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
对于未登录的用户,我想使用 template1,它有自己的 CSS、JS、视图等。对于已登录的用户,我想使用 template2。我怎样才能用 AngularJS 做到这一点?
你试过ui-router吗?不确定这会有所帮助。试试看。
使用ui-router您可以创建多个模板。此处给出的示例页面