mention.ts 686 B

12345678910111213141516171819202122232425
  1. import { Component, Input } from "@angular/core";
  2. import { copyInputAttributes } from "../../../node_modules/ionic-angular/umd/util/dom";
  3. import { NavController } from "../../../node_modules/ionic-angular/umd";
  4. import { ProfilePage } from "../../pages/profile/profile";
  5. /**
  6. * Generated class for the MentionComponent component.
  7. *
  8. * See https://angular.io/api/core/Component for more info on Angular
  9. * Components.
  10. */
  11. @Component({
  12. selector: "mention",
  13. templateUrl: "mention.html"
  14. })
  15. export class MentionComponent {
  16. @Input()
  17. username: string;
  18. constructor(public navCtrl: NavController) {}
  19. showProfile(username) {
  20. this.navCtrl.push(ProfilePage, { username });
  21. }
  22. }