Created
July 18, 2017 04:01
-
-
Save imskojs/25d86997711ee265f6a9aac6e7b21f1b to your computer and use it in GitHub Desktop.
type casting from superclass to subclass
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
class x { | |
constructor(private navCtrl: NavController) { | |
} | |
ngAfterViewInit(){ | |
const tab: Tab = this.navCtrl as any; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment