Hi Andrei, so I wanted to ask you about a "strange thing" and I am putting the quotes because it might be angular beevaing just normally and I am not acknowledging it
Andrei
@deiu
Hey
Sure
mzereba
@mzereba
First of all I have uploaded the application manager
And you don\t have to answer me now :p
So if if you run it having at least one metadata file (which I will be sending the template through email) you would notice the following
I have $scope.apps which is the array of "app" which is the object that represent the each metadata file, and I have $scope.currentapp which represent the current selected app which you are viewing its settings
Obviously currentapp is copy of an app item
Andrei
@deiu
Ok..
mzereba
@mzereba
so whenever I alter the currentapp object the equivalent app object in the apps array gets alterated as well
Andrei
@deiu
Of course
mzereba
@mzereba
It sounds helpful and anticipate what you want to do, but there is an issue with this:
Andrei
@deiu
You need to explicitly copy the object, otherwise it points to it
I think angular has a copy function
mzereba
@mzereba
Ok so before I finish I guess I might have gotten the answer :)
Because I cannot keep track of what is not altereted in case (for instance of failure of an operation for network or server error), in order to restore the original
And it will require a data pulling which cannot happen in case for example the faulire caused by a network error
Hope I made my point
I will try the copy and let you know, in a while since I have to leave now
But I will send you the template on the email in case you want to check anything out