refactor(bootstrap): use ionicBootstrap() to bootstrap

BREAKING CHANGES:

- Ionic's custom decorators have been removed.
- `@App` and `@Page` should be replaced with `@Component`.
- `IonicApp` has been renamed to `App`.
- `ionicBootstrap` is required to bootstrap the app.
- Config is now the 3rd parameter in `ionicBootstrap(rootComponent,
providers, config)`.
- Property `prodMode` is now a config option, enabling or disabling
production mode.
This commit is contained in:
Adam Bradley
2016-05-31 15:42:06 -05:00
parent 4b4092b25e
commit 73635f3939
19 changed files with 210 additions and 275 deletions

View File

@ -5,7 +5,7 @@ import {Config} from '../../config/config';
import {Content} from '../content/content';
import {Form} from '../../util/form';
import {InputBase} from './input-base';
import {IonicApp} from '../app/app';
import {App} from '../app/app';
import {Item} from '../item/item';
import {Label} from '../label/label';
import {NativeInput, NextInput} from './native-input';
@ -79,7 +79,7 @@ export class TextInput extends InputBase {
config: Config,
form: Form,
@Optional() item: Item,
app: IonicApp,
app: App,
platform: Platform,
elementRef: ElementRef,
@Optional() scrollView: Content,
@ -170,7 +170,7 @@ export class TextArea extends InputBase {
config: Config,
form: Form,
@Optional() item: Item,
app: IonicApp,
app: App,
platform: Platform,
elementRef: ElementRef,
@Optional() scrollView: Content,