Here is some important HTML code:
<ng-include src="'app/views/order.html'"></ng-include>
Within the scope of this ng-include
, there is a variable called trade. The structure of the trade variable is as follows:
var trade = {
order: {}
}
The issue arises because the order.html file is expecting an order variable directly, not nested within trade.order
.
How would you go about calling the ng-include
and passing trade.order
as the order
variable?