I have a table which displays list of products. And I display same table for "All products" page and for "My products" page. This is part of this table:
<tr ng-repeat="product in products>
<td>{{product.id}}</td>
<td>{{product.name}}</td>
Both "All products" and "My products" pages has own controllers where I setup the $scope.products
variable.
Can I exclude definition of this talbe to separate file and use it for both "All products" and "My products" pages?