离子v1中的可点击子标题

时间:2017-09-07 04:52:03

标签: ionic-framework

我喜欢

这样的离子视图
ion-view(title='{{review_type}} reviews',ng-cache="false",cache-view='false')
  wta-nav-action-right(icon='icon-white-plus', action='reviewAdd')
  ion-content
    review-empty-list(ng-show='!reviews.length')
    section(style="margin-top:10px")
      wta-review(ng-repeat='review in reviews')
      infinite-scroll(items='reviews', query='query')

我将此转换为两行标题 I am trying to convert “Blueberry Wine” into hyperlink so that by clicking on this user can navigate to respective Page…

我正在尝试将“蓝莓酒”转换为超链接,以便通过点击此用户可以导航到相应的页面...

我尝试了但ng-click事件未被触发。 我将span标记放在ion-view title内,并将ng-click属性赋予span,但仍未触发事件。

ion-view(title='<span class="header",ng-click="clickable()">{{review_type}} reviews</span>,'ng-cache="false",cache-view='false')

1 个答案:

答案 0 :(得分:0)

我是通过添加这个来完成的。这里是代码平移链接https://codepen.io/calendee/pen/bLJcD

ion-view(title='{{review_type}} reviews',ng-cache="false",cache-view='false')
  wta-nav-action-right(icon='icon-white-plus', action='reviewAdd')
  ion-content
    section
      nav
        a.col.text-center.center(style="background-color: #f0483d;color: white;padding: 10px 0")
          h4(style="color :white") Winery Name
    review-empty-list(ng-show='!reviews.length')
    section(style="margin-top:10px")
      wta-review(ng-repeat='review in reviews')
      infinite-scroll(items='reviews', query='query')