mention.ts 440 B

1234567891011121314151617181920
  1. import { Component, Input } from "@angular/core";
  2. import { App } from "ionic-angular";
  3. import { ProfilePage } from "../../pages/profile/profile";
  4. @Component({
  5. selector: "mention",
  6. templateUrl: "mention.html"
  7. })
  8. export class MentionComponent {
  9. @Input()
  10. username: string;
  11. @Input()
  12. userId: string;
  13. constructor(private appCtrl: App) {}
  14. showProfile(userId) {
  15. this.appCtrl.getRootNav().push(ProfilePage, { userId });
  16. }
  17. }