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

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -