Created
March 22, 2017 15:29
-
-
Save chrisgriffith/00866a8e15afeac74365e574027fc935 to your computer and use it in GitHub Desktop.
IONIC SPLIT PANE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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