mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): rename IonicPlatform to Platform
This commit is contained in:
@@ -4,7 +4,7 @@ import {Ion} from '../ion';
|
||||
import {IonicApp} from '../app/app';
|
||||
import {Config} from '../../config/config';
|
||||
import {ConfigComponent} from '../../config/decorators';
|
||||
import {IonicPlatform} from '../../platform/platform';
|
||||
import {Platform} from '../../platform/platform';
|
||||
import {IonicKeyboard} from '../../util/keyboard';
|
||||
import * as gestures from './menu-gestures';
|
||||
|
||||
@@ -68,7 +68,7 @@ export class Menu extends Ion {
|
||||
app: IonicApp,
|
||||
elementRef: ElementRef,
|
||||
config: Config,
|
||||
platform: IonicPlatform,
|
||||
platform: Platform,
|
||||
keyboard: IonicKeyboard
|
||||
) {
|
||||
super(elementRef, config);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {App, Page, IonicApp, Config, IonicPlatform} from 'ionic/ionic';
|
||||
import {App, Page, IonicApp, Config, Platform} from 'ionic/ionic';
|
||||
import {Modal, ActionSheet, NavController, NavParams, Animation} from 'ionic/ionic';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {Modal, ActionSheet, NavController, NavParams, Animation} from 'ionic/ion
|
||||
})
|
||||
class MyAppCmp {
|
||||
|
||||
constructor(modal: Modal, app: IonicApp, config: Config, platform: IonicPlatform) {
|
||||
constructor(modal: Modal, app: IonicApp, config: Config, platform: Platform) {
|
||||
this.modal = modal;
|
||||
|
||||
console.log('platforms', platform.platforms());
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import {Directive, Attribute, NgZone} from 'angular2/angular2'
|
||||
|
||||
import {IonicPlatform} from '../../platform/platform';
|
||||
import {Platform} from '../../platform/platform';
|
||||
|
||||
|
||||
class DisplayWhen {
|
||||
@@ -68,7 +68,7 @@ export class ShowWhen extends DisplayWhen {
|
||||
*/
|
||||
constructor(
|
||||
@Attribute('show-when') showWhen: string,
|
||||
platform: IonicPlatform,
|
||||
platform: Platform,
|
||||
ngZone: NgZone
|
||||
) {
|
||||
super(showWhen, platform, ngZone);
|
||||
@@ -97,7 +97,7 @@ export class HideWhen extends DisplayWhen {
|
||||
*/
|
||||
constructor(
|
||||
@Attribute('hide-when') hideWhen: string,
|
||||
platform: IonicPlatform,
|
||||
platform: Platform,
|
||||
ngZone: NgZone
|
||||
) {
|
||||
super(hideWhen, platform, ngZone);
|
||||
|
||||
@@ -6,7 +6,7 @@ import {Label} from './label';
|
||||
import {IonicApp} from '../app/app';
|
||||
import {Content} from '../content/content';
|
||||
import * as dom from '../../util/dom';
|
||||
import {IonicPlatform} from '../../platform/platform';
|
||||
import {Platform} from '../../platform/platform';
|
||||
|
||||
|
||||
/**
|
||||
@@ -33,7 +33,7 @@ export class TextInput {
|
||||
renderer: Renderer,
|
||||
app: IonicApp,
|
||||
zone: NgZone,
|
||||
platform: IonicPlatform,
|
||||
platform: Platform,
|
||||
@Optional() @Host() scrollView: Content
|
||||
) {
|
||||
renderer.setElementClass(elementRef, 'item', true);
|
||||
|
||||
Reference in New Issue
Block a user