How can we use two different instances of scope objects
For example :
$scope.seriesdata = [
[65, 59, 80, 81, 56, 55, 40],
[28, 48, 40, 19, 86, 27, 90]
];
$scope.currentseries = $scope.seriesdata;
Now if I update $scope.currentseries , $scope.series got automatically updated.
For Example :
$scope.currentseriesdata.splice(index,1);
This updates both $scope.currentseriesdata and $scope.seriesdata
Before writing this : I read this
I dont need to work in factory .
I just need to know how to have different instances within controller