Skip to content

Instantly share code, notes, and snippets.

@chrisgriffith
Created March 22, 2017 15:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisgriffith/00866a8e15afeac74365e574027fc935 to your computer and use it in GitHub Desktop.
Save chrisgriffith/00866a8e15afeac74365e574027fc935 to your computer and use it in GitHub Desktop.
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