hashtag.ts 578 B

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