My goal is to have the showOrder.html template rendered when the value of orderHistory.type (a scope variable initialized as 'list') changes to 'show'. This change occurs when a link is clicked in the orderHistoryList.html. The model is being updated successfully, but the template does not switch. Any help is appreciated. Thanks!
<div data-ng-controller="SettingsController">
<div ng-if="orderHistory.type=='list'" data-ng-include="'orderHistoryList.html'"></div>
<div ng-if="orderHistory.type=='show'" data-ng-include="'showOrder.html'"></div>