|
@@ -1,13 +1,8 @@
|
|
import { Component, Input } from "@angular/core";
|
|
import { Component, Input } from "@angular/core";
|
|
-import { NavController, ActionSheetController } from "ionic-angular";
|
|
|
|
|
|
+import { ActionSheetController, App } from "ionic-angular";
|
|
import { ProfilePage } from "../../pages/profile/profile";
|
|
import { ProfilePage } from "../../pages/profile/profile";
|
|
import { TwitterApiProvider } from "../../providers/twitter-api/twitter-api";
|
|
import { TwitterApiProvider } from "../../providers/twitter-api/twitter-api";
|
|
-/**
|
|
|
|
- * Generated class for the TweetHeaderComponent component.
|
|
|
|
- *
|
|
|
|
- * See https://angular.io/api/core/Component for more info on Angular
|
|
|
|
- * Components.
|
|
|
|
- */
|
|
|
|
|
|
+
|
|
@Component({
|
|
@Component({
|
|
selector: "tweet-header",
|
|
selector: "tweet-header",
|
|
templateUrl: "tweet-header.html"
|
|
templateUrl: "tweet-header.html"
|
|
@@ -19,13 +14,13 @@ export class TweetHeaderComponent {
|
|
tweetCreatedAt: string;
|
|
tweetCreatedAt: string;
|
|
|
|
|
|
constructor(
|
|
constructor(
|
|
- public navCtrl: NavController,
|
|
|
|
|
|
+ private appCtrl: App,
|
|
public actionSheetCtrl: ActionSheetController,
|
|
public actionSheetCtrl: ActionSheetController,
|
|
private twitter: TwitterApiProvider
|
|
private twitter: TwitterApiProvider
|
|
) {}
|
|
) {}
|
|
|
|
|
|
showProfile(userId) {
|
|
showProfile(userId) {
|
|
- this.navCtrl.push(ProfilePage, { userId });
|
|
|
|
|
|
+ this.appCtrl.getRootNav().push(ProfilePage, { userId });
|
|
}
|
|
}
|
|
|
|
|
|
showActions(userId) {
|
|
showActions(userId) {
|