I currently have a table that showcases a list of products. This table is utilized on both the "All products" page and the "My products" page. Here is a snippet of the table code:
<tr ng-repeat="product in products>
<td>{{product.id}}</td>
<td>{{product.name}}</td>
Each page has its own controller where I define the $scope.products
variable.
Is it possible to separate the table's definition into a separate file and use it on both the "All products" and "My products" pages?