I have organized all my Angular controllers in one controller file.
However, I encountered an issue when trying to print out a specific part of my object array at the end of a controller. Everything worked fine until I added a new controller after the current one - then none of my views were rendered and I received the following error message.
Uncaught SyntaxError: Unexpected token >
The error points to this section of code:
$scope.formats = [];
$scope.productTypeChange = function () {
$scope.formats = $scope.productsandformats.find(ps => ps.name == $scope.formData.Product.name
)
}
I have searched on Stack Overflow and Google for a solution but haven't found one yet. Any easy fixes you can suggest? Thank you!