0
I need to assign or even create a new attribute in an object within a loop, but it is giving the following error, that I have no idea what it is:
Typeerror: Cannot create Property 'is_content_hide' on Boolean 'false'
EmailService.setMail(data)
.then(function(result){
if (result.status) {
if (angular.isDefined(result.em_massa) && result.em_massa) {
for (var i in $scope.content.dados) {
if ($scope.content.dados[i]) {
$scope.content.dados[j].is_content_hide = true;
}
}
}
}
});