I been trying to migrate my Ionic 1 application to Ionic 2 and have been encountering alot of new terms and problems.
I do not really understand the need for get parameters() and when and what variables to return in that function.
For example(To Navigate):
static get parameters() {
return [[NavController]];
}
Previously in an older ionic build(I'm not sure which version I was developing upon), I can navigate to pages without this function. In the latest ionic 2 build(2.0.0-beta.25) , without this get parameters() function, it just wont navigate to the next targeted page , but there are no errors.
I'm aware of a existing post: Angular/Ionic 2 - what is a provider and what does `static get parameters()` do?
Therefore, in what occasion I should return and what variables do I return?