I am using ionic2 (Angular2& typescript).Currently i am working on a matching algorithm where a match is found it will push the result inside an array which is also inside an object. However if i go back to the previous page and try to do another match.It will display results from the previous match.Hence i would want to be able to clear out all the results inside the array/object before proceeding to the matching part.So far i tried using ionwillEnter , and it just give me a blank page.I tried putting it inside the constructor and it does not work.Below are the codes I am using ionic2 (Angular2& typescript).Curren