How to use the ionic-angular/platform/platform.Platform function in ionic-angular

To help you get started, we’ve selected a few ionic-angular examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github ionic-team / ionic-site / docs / v2 / demos / src / config / app.component.ngfactory.js View on Github external
_View_ApiDemoPage_Host0.prototype.createInternal = function (rootSelector) {
        this._el_0 = this.selectOrCreateHostElement('ng-component', rootSelector, null);
        this._appEl_0 = new import3.AppElement(0, null, this, this._el_0);
        var compView_0 = viewFactory_ApiDemoPage0(this.viewUtils, this.injector(0), this._appEl_0);
        this._ApiDemoPage_0_4 = new Wrapper_ApiDemoPage(this.parentInjector.get(import17.Platform), this.parentInjector.get(import12.NavController));
        this._appEl_0.initComponent(this._ApiDemoPage_0_4.context, [], compView_0);
        compView_0.create(this._ApiDemoPage_0_4.context, this.projectableNodes, null);
        this.init([].concat([this._el_0]), [this._el_0], [], []);
        return this._appEl_0;
    };
    _View_ApiDemoPage_Host0.prototype.injectorGetInternal = function (token, requestNodeIndex, notFoundResult) {
github ionic-team / ionic-site / docs / v2 / demos / src / modal / app.module.ngfactory.js View on Github external
if ((token === import67.PlatformConfigToken)) {
            return this._PlatformConfigToken_15;
        }
        if ((token === import68.UserAgentToken)) {
            return this._UserAgentToken_16;
        }
        if ((token === import68.NavigatorPlatformToken)) {
            return this._NavigatorPlatformToken_17;
        }
        if ((token === import68.DocumentDirToken)) {
            return this._DocumentDirToken_18;
        }
        if ((token === import68.DocLangToken)) {
            return this._DocLangToken_19;
        }
        if ((token === import68.Platform)) {
            return this._Platform_20;
        }
        if ((token === import69.Config)) {
            return this._Config_21;
        }
        if ((token === import10.App)) {
            return this._App_22;
        }
        if ((token === import11.APP_INITIALIZER)) {
            return this._APP_INITIALIZER_23;
        }
        if ((token === import11.ApplicationInitStatus)) {
            return this._ApplicationInitStatus_24;
        }
        if ((token === import12.Testability)) {
            return this._Testability_25;
github ionic-team / ionic-site / docs / v2 / demos / src / infinite-scroll / app.module.ngfactory.js View on Github external
if ((token === import67.PlatformConfigToken)) {
            return this._PlatformConfigToken_15;
        }
        if ((token === import68.UserAgentToken)) {
            return this._UserAgentToken_16;
        }
        if ((token === import68.NavigatorPlatformToken)) {
            return this._NavigatorPlatformToken_17;
        }
        if ((token === import68.DocumentDirToken)) {
            return this._DocumentDirToken_18;
        }
        if ((token === import68.DocLangToken)) {
            return this._DocLangToken_19;
        }
        if ((token === import68.Platform)) {
            return this._Platform_20;
        }
        if ((token === import69.Config)) {
            return this._Config_21;
        }
        if ((token === import10.App)) {
            return this._App_22;
        }
        if ((token === import11.APP_INITIALIZER)) {
            return this._APP_INITIALIZER_23;
        }
        if ((token === import11.ApplicationInitStatus)) {
            return this._ApplicationInitStatus_24;
        }
        if ((token === import12.Testability)) {
            return this._Testability_25;
github ionic-team / ionic-site / docs / v2 / demos / src / popover / app.module.ngfactory.js View on Github external
if ((token === import67.PlatformConfigToken)) {
            return this._PlatformConfigToken_15;
        }
        if ((token === import68.UserAgentToken)) {
            return this._UserAgentToken_16;
        }
        if ((token === import68.NavigatorPlatformToken)) {
            return this._NavigatorPlatformToken_17;
        }
        if ((token === import68.DocumentDirToken)) {
            return this._DocumentDirToken_18;
        }
        if ((token === import68.DocLangToken)) {
            return this._DocLangToken_19;
        }
        if ((token === import68.Platform)) {
            return this._Platform_20;
        }
        if ((token === import69.Config)) {
            return this._Config_21;
        }
        if ((token === import10.App)) {
            return this._App_22;
        }
        if ((token === import11.APP_INITIALIZER)) {
            return this._APP_INITIALIZER_23;
        }
        if ((token === import11.ApplicationInitStatus)) {
            return this._ApplicationInitStatus_24;
        }
        if ((token === import12.Testability)) {
            return this._Testability_25;
github ionic-team / ionic-site / docs / v2 / demos / src / show-when / app.component.ngfactory.js View on Github external
this._el_20 = this.renderer.createElement(null, 'ion-grid', null);
        this._Grid_20_3 = new import14.Wrapper_Grid();
        this._text_21 = this.renderer.createText(this._el_20, '\n    ', null);
        this._el_22 = this.renderer.createElement(this._el_20, 'ion-row', null);
        this._Row_22_3 = new import14.Wrapper_Row();
        this._text_23 = this.renderer.createText(this._el_22, '\n      ', null);
        this._el_24 = this.renderer.createElement(this._el_22, 'ion-col', null);
        this.renderer.setElementAttribute(this._el_24, 'text-center', '');
        this._Col_24_3 = new import14.Wrapper_Col();
        this._text_25 = this.renderer.createText(this._el_24, '\n        ', null);
        this._el_26 = this.renderer.createElement(this._el_24, 'ion-icon', null);
        this.renderer.setElementAttribute(this._el_26, 'name', 'logo-apple');
        this.renderer.setElementAttribute(this._el_26, 'role', 'img');
        this.renderer.setElementAttribute(this._el_26, 'showWhen', 'ios');
        this._Icon_26_3 = new import15.Wrapper_Icon(this.parentInjector.get(import17.Config), new import18.ElementRef(this._el_26), this.renderer);
        this._ShowWhen_26_4 = new import16.Wrapper_ShowWhen('ios', this.parentInjector.get(import26.Platform), this.parentInjector.get(import24.NgZone));
        this._text_27 = this.renderer.createText(this._el_24, '\n      ', null);
        this._text_28 = this.renderer.createText(this._el_22, '\n      ', null);
        this._el_29 = this.renderer.createElement(this._el_22, 'ion-col', null);
        this._Col_29_3 = new import14.Wrapper_Col();
        this._text_30 = this.renderer.createText(this._el_29, '\n        ', null);
        this._el_31 = this.renderer.createElement(this._el_29, 'code', null);
        this._text_32 = this.renderer.createText(this._el_31, '  ', null);
        this._text_33 = this.renderer.createText(this._el_29, '\n      ', null);
        this._text_34 = this.renderer.createText(this._el_22, '\n    ', null);
        this._text_35 = this.renderer.createText(this._el_20, '\n    ', null);
        this._el_36 = this.renderer.createElement(this._el_20, 'ion-row', null);
        this._Row_36_3 = new import14.Wrapper_Row();
        this._text_37 = this.renderer.createText(this._el_36, '\n      ', null);
        this._el_38 = this.renderer.createElement(this._el_36, 'ion-col', null);
        this.renderer.setElementAttribute(this._el_38, 'text-center', '');
        this._Col_38_3 = new import14.Wrapper_Col();
github ionic-team / ionic-site / docs / v2 / demos / src / events / app.component.ngfactory.js View on Github external
this._appEl_32.initComponent(this._Item_32_4.context, [], compView_32);
        this._text_33 = this.renderer.createText(null, '\n      ', null);
        this._el_34 = this.renderer.createElement(null, 'ion-label', null);
        this.renderer.setElementAttribute(this._el_34, 'color', 'primary');
        this.renderer.setElementAttribute(this._el_34, 'stacked', '');
        this._Label_34_3 = new import22.Wrapper_Label(this.parentInjector.get(import26.Config), new import27.ElementRef(this._el_34), this.renderer, null, '', null, null);
        this._text_35 = this.renderer.createText(this._el_34, 'Username', null);
        this._text_36 = this.renderer.createText(null, '\n      ', null);
        this._el_37 = this.renderer.createElement(null, 'ion-input', null);
        this.renderer.setElementAttribute(this._el_37, 'disabled', '');
        this._appEl_37 = new import3.AppElement(37, 32, this, this._el_37);
        var compView_37 = import25.viewFactory_TextInput0(this.viewUtils, this.injector(37), this._appEl_37);
        this._NgModel_37_4 = new import23.Wrapper_NgModel(null, null, null, null);
        this._NgControl_37_5 = this._NgModel_37_4.context;
        this._NgControlStatus_37_6 = new import24.Wrapper_NgControlStatus(this._NgControl_37_5);
        this._TextInput_37_7 = new import25.Wrapper_TextInput(this.parentInjector.get(import26.Config), this.parentInjector.get(import37.Form), this._Item_32_4.context, this.parentInjector.get(import29.App), this.parentInjector.get(import38.Platform), new import27.ElementRef(this._el_37), this.renderer, this._Content_14_4.context, this.parentInjector.get(import30.NavController, null), this._NgControl_37_5);
        this._appEl_37.initComponent(this._TextInput_37_7.context, [], compView_37);
        compView_37.create(this._TextInput_37_7.context, [], null);
        this._text_38 = this.renderer.createText(null, '\n    ', null);
        this._query_Label_32_0.reset([this._Label_34_3.context]);
        this._Item_32_4.context.contentLabel = this._query_Label_32_0.first;
        compView_32.create(this._Item_32_4.context, [
            [],
            [].concat([this._el_34]),
            [].concat([
                this._text_33,
                this._text_36,
                this._text_38
            ]),
            [].concat([this._el_37]),
            []
        ], null);
github ionic-team / ionic-site / docs / v2 / demos / src / hide-when / app.component.ngfactory.ts View on Github external
this._text_32 = this.renderer.createText(this._el_31,'  ',(null as any));
    this._text_33 = this.renderer.createText(this._el_29,'\n      ',(null as any));
    this._text_34 = this.renderer.createText(this._el_22,'\n    ',(null as any));
    this._text_35 = this.renderer.createText(this._el_20,'\n    ',(null as any));
    this._el_36 = this.renderer.createElement(this._el_20,'ion-row',(null as any));
    this._Row_36_3 = new import14.Wrapper_Row();
    this._text_37 = this.renderer.createText(this._el_36,'\n      ',(null as any));
    this._el_38 = this.renderer.createElement(this._el_36,'ion-col',(null as any));
    this.renderer.setElementAttribute(this._el_38,'text-center','');
    this._Col_38_3 = new import14.Wrapper_Col();
    this._text_39 = this.renderer.createText(this._el_38,'\n        ',(null as any));
    this._el_40 = this.renderer.createElement(this._el_38,'ion-icon',(null as any));
    this.renderer.setElementAttribute(this._el_40,'hideWhen','ios,windows');
    this.renderer.setElementAttribute(this._el_40,'name','logo-android');
    this.renderer.setElementAttribute(this._el_40,'role','img');
    this._HideWhen_40_3 = new import15.Wrapper_HideWhen('ios,windows',this.parentInjector.get(import26.Platform),this.parentInjector.get(import24.NgZone));
    this._Icon_40_4 = new import16.Wrapper_Icon(this.parentInjector.get(import17.Config),new import18.ElementRef(this._el_40),this.renderer);
    this._text_41 = this.renderer.createText(this._el_38,'\n      ',(null as any));
    this._text_42 = this.renderer.createText(this._el_36,'\n      ',(null as any));
    this._el_43 = this.renderer.createElement(this._el_36,'ion-col',(null as any));
    this._Col_43_3 = new import14.Wrapper_Col();
    this._text_44 = this.renderer.createText(this._el_43,'\n        ',(null as any));
    this._el_45 = this.renderer.createElement(this._el_43,'code',(null as any));
    this._text_46 = this.renderer.createText(this._el_45,'  ',(null as any));
    this._text_47 = this.renderer.createText(this._el_43,'\n      ',(null as any));
    this._text_48 = this.renderer.createText(this._el_36,'\n    ',(null as any));
    this._text_49 = this.renderer.createText(this._el_20,'\n    ',(null as any));
    this._el_50 = this.renderer.createElement(this._el_20,'ion-row',(null as any));
    this._Row_50_3 = new import14.Wrapper_Row();
    this._text_51 = this.renderer.createText(this._el_50,'\n      ',(null as any));
    this._el_52 = this.renderer.createElement(this._el_50,'ion-col',(null as any));
    this.renderer.setElementAttribute(this._el_52,'text-center','');
github ionic-team / ionic-site / docs / v2 / demos / src / input / app.component.ngfactory.js View on Github external
this._ItemContent_13_5 = new import15.Wrapper_ItemContent();
        this._query_Label_13_0 = new import16.QueryList();
        this._query_Button_13_1 = new import16.QueryList();
        this._query_Icon_13_2 = new import16.QueryList();
        this._appEl_13.initComponent(this._Item_13_4.context, [], compView_13);
        this._text_14 = this.renderer.createText(null, '\n      ', null);
        this._el_15 = this.renderer.createElement(null, 'ion-label', null);
        this.renderer.setElementAttribute(this._el_15, 'color', 'primary');
        this._Label_15_3 = new import17.Wrapper_Label(this.parentInjector.get(import19.Config), new import20.ElementRef(this._el_15), this.renderer, null, null, null, null);
        this._text_16 = this.renderer.createText(this._el_15, 'Inline Label', null);
        this._text_17 = this.renderer.createText(null, '\n      ', null);
        this._el_18 = this.renderer.createElement(null, 'ion-input', null);
        this.renderer.setElementAttribute(this._el_18, 'placeholder', 'Text Input');
        this._appEl_18 = new import3.AppElement(18, 13, this, this._el_18);
        var compView_18 = import18.viewFactory_TextInput0(this.viewUtils, this.injector(18), this._appEl_18);
        this._TextInput_18_4 = new import18.Wrapper_TextInput(this.parentInjector.get(import19.Config), this.parentInjector.get(import29.Form), this._Item_13_4.context, this.parentInjector.get(import22.App), this.parentInjector.get(import30.Platform), new import20.ElementRef(this._el_18), this.renderer, this._Content_9_4.context, this.parentInjector.get(import23.NavController, null), this.parentInjector.get(import31.NgControl, null));
        this._appEl_18.initComponent(this._TextInput_18_4.context, [], compView_18);
        compView_18.create(this._TextInput_18_4.context, [], null);
        this._text_19 = this.renderer.createText(null, '\n    ', null);
        this._query_Label_13_0.reset([this._Label_15_3.context]);
        this._Item_13_4.context.contentLabel = this._query_Label_13_0.first;
        compView_13.create(this._Item_13_4.context, [
            [],
            [].concat([this._el_15]),
            [].concat([
                this._text_14,
                this._text_17,
                this._text_19
            ]),
            [].concat([this._el_18]),
            []
        ], null);
github ionic-team / ionic-site / docs / v2 / demos / src / menu / app.component.ngfactory.js View on Github external
this._query_Content_0_0.reset([this._Content_11_4.context]);
        this._Menu_0_4.context.menuContent = this._query_Content_0_0.first;
        compView_0.create(this._Menu_0_4.context, [[].concat([
                this._text_1,
                this._el_2,
                this._text_10,
                this._el_11,
                this._text_19
            ])], null);
        this._text_20 = this.renderer.createText(parentRenderNode, '\n\n\n', null);
        this._el_21 = this.renderer.createElement(parentRenderNode, 'ion-menu', null);
        this.renderer.setElementAttribute(this._el_21, 'id', 'menu2');
        this.renderer.setElementAttribute(this._el_21, 'role', 'navigation');
        this._appEl_21 = new import3.AppElement(21, null, this, this._el_21);
        var compView_21 = import38.viewFactory_Menu0(this.viewUtils, this.injector(21), this._appEl_21);
        this._Menu_21_4 = new import38.Wrapper_Menu(this.parentInjector.get(import8.MenuController), new import22.ElementRef(this._el_21), this.parentInjector.get(import21.Config), this.parentInjector.get(import43.Platform), this.renderer, this.parentInjector.get(import27.Keyboard), this.parentInjector.get(import28.NgZone), this.parentInjector.get(import44.GestureController));
        this._query_Content_21_0 = new import16.QueryList();
        this._appEl_21.initComponent(this._Menu_21_4.context, [], compView_21);
        this._text_22 = this.renderer.createText(null, '\n\n  ', null);
        this._el_23 = this.renderer.createElement(null, 'ion-header', null);
        this._Header_23_3 = new import11.Wrapper_Header(this.parentInjector.get(import21.Config), new import22.ElementRef(this._el_23), this.renderer, this.parentInjector.get(import23.ViewController, null));
        this._text_24 = this.renderer.createText(this._el_23, '\n    ', null);
        this._el_25 = this.renderer.createElement(this._el_23, 'ion-toolbar', null);
        this.renderer.setElementAttribute(this._el_25, 'class', 'toolbar');
        this.renderer.setElementAttribute(this._el_25, 'color', 'danger');
        this._appEl_25 = new import3.AppElement(25, 23, this, this._el_25);
        var compView_25 = import11.viewFactory_Toolbar0(this.viewUtils, this.injector(25), this._appEl_25);
        this._Toolbar_25_4 = new import11.Wrapper_Toolbar(this.parentInjector.get(import23.ViewController, null), this.parentInjector.get(import21.Config), new import22.ElementRef(this._el_25), this.renderer);
        this._appEl_25.initComponent(this._Toolbar_25_4.context, [], compView_25);
        this._text_26 = this.renderer.createText(null, '\n      ', null);
        this._el_27 = this.renderer.createElement(null, 'ion-title', null);
        this._appEl_27 = new import3.AppElement(27, 25, this, this._el_27);
github ionic-team / ionic-site / docs / v2 / demos / src / label / app.component.ngfactory.js View on Github external
this._query_Label_53_0 = new import16.QueryList();
        this._query_Button_53_1 = new import16.QueryList();
        this._query_Icon_53_2 = new import16.QueryList();
        this._appEl_53.initComponent(this._Item_53_4.context, [], compView_53);
        this._text_54 = this.renderer.createText(null, '\n      ', null);
        this._el_55 = this.renderer.createElement(null, 'ion-label', null);
        this.renderer.setElementAttribute(this._el_55, 'color', 'primary');
        this.renderer.setElementAttribute(this._el_55, 'stacked', '');
        this._Label_55_3 = new import18.Wrapper_Label(this.parentInjector.get(import21.Config), new import22.ElementRef(this._el_55), this.renderer, null, '', null, null);
        this._text_56 = this.renderer.createText(this._el_55, 'Address', null);
        this._text_57 = this.renderer.createText(null, '\n      ', null);
        this._el_58 = this.renderer.createElement(null, 'ion-textarea', null);
        this.renderer.setElementAttribute(this._el_58, 'value', '121 S Pinckney St\nMadison WI 53703\nUnited States');
        this._appEl_58 = new import3.AppElement(58, 53, this, this._el_58);
        var compView_58 = import19.viewFactory_TextArea0(this.viewUtils, this.injector(58), this._appEl_58);
        this._TextArea_58_4 = new import19.Wrapper_TextArea(this.parentInjector.get(import21.Config), this.parentInjector.get(import31.Form), this._Item_53_4.context, this.parentInjector.get(import24.App), this.parentInjector.get(import32.Platform), new import22.ElementRef(this._el_58), this.renderer, this._Content_9_4.context, this.parentInjector.get(import25.NavController, null), this.parentInjector.get(import33.NgControl, null));
        this._appEl_58.initComponent(this._TextArea_58_4.context, [], compView_58);
        this._text_59 = this.renderer.createText(null, '\n      ', null);
        compView_58.create(this._TextArea_58_4.context, [], null);
        this._text_60 = this.renderer.createText(null, '\n    ', null);
        this._query_Label_53_0.reset([this._Label_55_3.context]);
        this._Item_53_4.context.contentLabel = this._query_Label_53_0.first;
        compView_53.create(this._Item_53_4.context, [
            [],
            [].concat([this._el_55]),
            [].concat([
                this._text_54,
                this._text_57,
                this._text_60
            ]),
            [].concat([this._el_58]),
            []