I would say like this:
Define your model on the main page and call it from your views.
if it is deleted, you can:
1 - listen to the “separate” lifecycle callback and register it imperatively inside it or
2 - store the material on the prototype assembly in a higher-level object and access it the way you like most.
3 - if everything fails, (I'm not sure if this will happen, but I think that I have not used this kind of implementation yet, at the moment I am talking with php and passing objects that I need persistent), you can use "prepareForRemoval", knowing that you will leave an instance, local storage of your material and make number 1, then "recoverFromRemoval" if you know what I mean in the camel shell prototype sentences .
In any case, I do not really like single people. Polymer is a powerful interface, but I'm not sure if this is the best way to do this.
in the API docs they don’t mention the possibility of trimming it ( as you can see ) but I honestly think that you are right and you will lose your things.
That only my 2 cents is actually just an ineffective solution that I came up with at this very moment , maybe @ebidel, @DocDude or @dodson can help us with this issue, but you cannot mark them here on SO I mark em on G + for us, you sir intrigued me.
By the way, why would you move away from your main page? there is no point for this in the polymer, you must dynamically change the content, do not go away from it. What will be the use case?
ps: sorry i hate capitalizing my own nouns. Get over it
EDIT (not suitable for comments):
I expressed myself wrongly. In any case, I strongly think that I did not understand what you wanted.
Well, if I got this right this time, yes, it will fire several times (they should), but it should not cut others as soon as the specific view is deleted.
As for the initialization logic, I would add that adding a listener to a window or a document (I think the window is more appropriate), waiting for the "finished polymer" event.
"To make sure my model matches a singleton pattern, I have to move the state outside of the element instance"
Yes, that's right. but don't wait for it to have a domready prototype in it, instead use a construct or similar contruct-like and call it a callback to the aforementioned event listener. I will edit my answer to make it clearer (if it is not, let me know) when I get home. I hope you understand.
If you do not, I will be back soon.