管理页面.html
<html><body ng-app = "myapp"
<div data-ng-view/>
</body></html>
用户页面.html
<html><body ng-app = "myapp"
<div data-ng-view/>
</body></html>
登录后,如果您是管理员,则会加载 adminpage.html。如果您是普通用户,将加载 userpage.html。data-ng-view for adminpage.html is very different with userpage.html
. 我怎么能用 angularjs、passportjs、expressjs 做到这一点?