I need to assign or even create a new attribute on an object within a loop, but it is giving the following error, which I have no idea what it is:
TypeError: Can not 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;
}
}
}
}
});