When looking at this code snippet, the controller is given an injected scope and rootScope. However, an error occurs on the last line with:
ReferenceError: $rootscope is not defined
angular.module("myEntity").controller('productsCtrl', [
'$scope', 'MyAction', '$rootScope', function ($scope, MyAction, $rootScope) {
$scope.propertyValue = something;
$scope.canDoSomething = $rootscope.myRootScopeProperty = 1;
....