Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Component } from '@angular/core';
- import { ActionSheetController } from 'ionic-angular';
- @Component({
- selector: 'page-main',
- templateUrl: 'main.html'
- })
- export class MainPage {
- cancelMsg: string;
- constructor(public actionSheetCtrl: ActionSheetController) {
- this.cancelMsg = "Close";
- }
- }
- import { Component } from '@angular/core';
- import { MainPage } from '../main/main';
- @Component({
- templateUrl: 'page-tab.html',
- providers: [MainPage]
- })
- export class TabPage{
- constructor(public mainPage: MainPage) {
- alert(mainPage.cancelMsg);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement