Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
IONIC SPLIT PANE
import { Component } from '@angular/core';
import { Events, NavController, NavParams } from 'ionic-angular';
@Component({
selector: 'page-mercury',
templateUrl: 'mercury.html'
})
export class MercuryPage {
title: String = ' ';
constructor(public events: Events, public navCtrl: NavController, public navParams: NavParams) {
events.subscribe('title:updated', (data) => {
if (data.menuState) {
this.title = "Projects";
} else {
this.title = ' ';
}
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.