Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228598

Ionic 2 on real device

$
0
0

//news.html

<ion-navbar *navbar>
  <button menuToggle>
<ion-icon name="menu"></ion-icon>
 </button>
<ion-title>News</ion-title>
</ion-navbar>
<ion-content >
<ion-card *ngFor="#get of newsData" (click)="itemTapped(get)">
<h2>{{get.title}}</h2>
  <ion-card-header>
    <p>{{get.createdAt}}</p>
  </ion-card-header>
</ion-card>
</ion-content>

//end news.html
//start newsdetail.html

<ion-navbar *navbar>
 <button menuToggle>
 <ion-icon name="menu"></ion-icon>
</button>
<ion-title>{{title.title}}</ion-title>
</ion-navbar>
<ion-content>
<p>{{description.description}}</p>
</ion-content>

//end of newsdetail.html


Viewing all articles
Browse latest Browse all 228598

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>