Use $scope.tools = angular.copy( $scope.presets[0]); On Sunday, January 25, 2015 at 6:31:13 AM UTC+6, Александр Духновский wrote: > > Hi! I don't understant what's happening. > I assigned to the variable value $scope.tools = $scope.presets[0]; When > changing $scope.tools changes $scope.presets[0]; > Why so? Apart from this line, they never intersect. How can i make that > change > $scope.tools not change $scope.presets[0]. > > Thanks. >
-- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
