Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
});
}
openPage(page: any) {
// Reset the content nav to have just this page
// we wouldn't want the back button to show in this scenario
this.nav.setRoot(page.component);
}
}
ionicBootstrap(MyApp);
@Component({
template: '',
})
export class MyApp {
rootPage: any = HomePage;
constructor(platform: Platform) {
platform.ready().then(() => {
// Okay, so the platform is ready and our plugins are available.
// Here you can do any higher level native things you might need.
StatusBar.styleDefault();
});
}
}
ionicBootstrap(MyApp);
this.menu.enable(loggedIn, 'loggedInMenu');
this.menu.enable(!loggedIn, 'loggedOutMenu');
}
}
// Pass the main App component as the first argument
// Pass any providers for your app in the second argument
// Set any config for your app as the third argument, see the docs for
// more ways to configure your app:
// http://ionicframework.com/docs/v2/api/config/Config/
// Place the tabs on the bottom for all platforms
// See the theming docs for the default values:
// http://ionicframework.com/docs/v2/theming/platform-specific-styles/
ionicBootstrap(ConferenceApp, [ConferenceData, UserData], {
tabbarPlacement: 'bottom'
});
], ApiDemoPage);
return ApiDemoPage;
}());
var ApiDemoApp = (function () {
function ApiDemoApp() {
this.root = ApiDemoPage;
}
ApiDemoApp = __decorate([
core_1.Component({
template: ''
}),
__metadata('design:paramtypes', [])
], ApiDemoApp);
return ApiDemoApp;
}());
ionic_angular_1.ionicBootstrap(ApiDemoApp);
}());
var ApiDemoApp = (function () {
function ApiDemoApp() {
this.root = ApiDemoPage;
}
ApiDemoApp = __decorate([
core_1.Component({
template: '',
styleUrls: ['style.css'],
encapsulation: core_1.ViewEncapsulation.None
}),
__metadata('design:paramtypes', [])
], ApiDemoApp);
return ApiDemoApp;
}());
ionic_angular_1.ionicBootstrap(ApiDemoApp);
var _a;
}());
exports.PushPage = PushPage;
var ApiDemoApp = (function () {
function ApiDemoApp() {
this.root = ApiDemoPage;
}
ApiDemoApp = __decorate([
core_1.Component({
template: ''
}),
__metadata('design:paramtypes', [])
], ApiDemoApp);
return ApiDemoApp;
}());
ionic_angular_1.ionicBootstrap(ApiDemoApp);
], ApiDemoPage);
return ApiDemoPage;
}());
var ApiDemoApp = (function () {
function ApiDemoApp() {
this.root = ApiDemoPage;
}
ApiDemoApp = __decorate([
core_1.Component({
template: ''
}),
__metadata('design:paramtypes', [])
], ApiDemoApp);
return ApiDemoApp;
}());
ionic_angular_1.ionicBootstrap(ApiDemoApp);
});
};
__decorate([
core_1.ViewChild(ionic_angular_1.Nav),
__metadata('design:type', (typeof (_a = typeof ionic_angular_1.Nav !== 'undefined' && ionic_angular_1.Nav) === 'function' && _a) || Object)
], ApiDemoApp.prototype, "nav", void 0);
ApiDemoApp = __decorate([
core_1.Component({
templateUrl: 'app.html'
}),
__metadata('design:paramtypes', [(typeof (_b = typeof ionic_angular_1.Events !== 'undefined' && ionic_angular_1.Events) === 'function' && _b) || Object])
], ApiDemoApp);
return ApiDemoApp;
var _a, _b;
}());
ionic_angular_1.ionicBootstrap(ApiDemoApp);
var _a;
}());
exports.ApiDemoPage = ApiDemoPage;
var ApiDemoApp = (function () {
function ApiDemoApp() {
this.root = ApiDemoPage;
}
ApiDemoApp = __decorate([
core_1.Component({
template: ''
}),
__metadata('design:paramtypes', [])
], ApiDemoApp);
return ApiDemoApp;
}());
ionic_angular_1.ionicBootstrap(ApiDemoApp);
return ApiDemoPage;
var _a;
}());
var ApiDemoApp = (function () {
function ApiDemoApp() {
this.root = ApiDemoPage;
}
ApiDemoApp = __decorate([
core_1.Component({
template: ''
}),
__metadata('design:paramtypes', [])
], ApiDemoApp);
return ApiDemoApp;
}());
ionic_angular_1.ionicBootstrap(ApiDemoApp);