angularjs - Unexpected $scope.var behaviour -
i've found problem in code... i've tried debug , ended doing simple as:
$scope.activity = { subject: null, activity_type_id: null, description: null, date: null, time: null, duration: null, set_as_done: false, attaches: { company: 'test', people: null, deal: null } }; console.log($scope.activity);
when printing console, "null" instead of "test" in $scope.activity.attaches.company...
however, if print
console.log($scope.activity.attaches)
i right value... lost @ moment...
Comments
Post a Comment