我有仪表板页面
它有两列
一个在左边,另一个在右边。
Left Div包含链接[Home,Profile]
当用户点击左侧的链接时,“Right DIV”数据会相应改变
我尝试了什么
我使用了Angular指令 ng-switch 来加载页面中的部分内容。
<div class="col-lg-2">
<h3>MENU</h3>
<a href="#" ng-model="RESOURCES" ng-click="page='resources'">Resources</a>
<br>
<a href="#" ng-click="page='users'">Users</a>
</div>
<div class="col-lg-10 card">
<div ng-switch on="page">
<div ng-switch-when="resources">
<h3>Dashboard</h3>
</div>
<div ng-switch-when="users">
<h3>Users</h3>
</div>
<div ng-switch-default>
<h4>Default</h4>
</div>
</div>
</div>
但是现在我想要从数据库中注入数据的部分页面
我怎样才能做到这一点
请帮助。