Angular/Ionic 2 - what is a provider and what does `static get parameters()` do?
<p>I am learning Angular 2 (with Ionic 2) - there are two concepts which I cannot relate to from Angular 1.</p>

<p>I have a class like follows:</p>

<pre><code>import {App, Platform} from 'ionic-angular';
import {RegisterPage} from './pages/register/register';


@App({
    templateUrl: 'build/index.html',
    config: {} // http://ionicframework.com/docs/v2/api/config/Config/
})
export class MyApp {
    static get parameters() {
        return [[Platform]];
    }

    constructor(platform) {
        this.rootPage = RegisterPage;

        platform.ready().then(() =&gt; {
            // The platform is now ready. Note: if this callback fails to fire, follow
            // the Troubleshooting guide for a number of possible solutions:
            //
            // Okay, so the platform is ready and our plugins are available.
            // Here you can do any higher level native things you might need.
            //
            // First, let's hide the keyboard accessory bar (only works natively) since
            // that's a better default:
            //
            // Keyboard.setAccessoryBarVisible(false);
            //
            // For example, we might change the StatusBar color. This one below is
            // good for dark backgrounds and light text:
            StatusBar.setStyle(StatusBar.LIGHT_CONTENT);
        });
    }
}
</code></pre>

<p>What is a provider and what does it do/what is its purpose?</p>

<p>What does the following code do:</p>

<pre><code>static get parameters() {
    return [[Platform]];
}
</code></pre>