Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70762

Input html thanks Typescript object

$
0
0

@TheLLspectre wrote:

Hi everyone !! :slight_smile:

I would like to have some advice …

My app is divided in two parts, first the aim, is to connect th IonicApp to a Raspberry , and it’s why i make the first part of this app, it’s only a viewer to interact with the raspberry, and the second part of the app it’s another viewer with an add button, to add the previous viewer for one raspberry.

So i have in pages “home” and “viewer”, the rootPage is “viewer”.

So i want in the viewerPage, when you clicked on the add button, you add an “object” from home. (: this line in html)
I did it manually in the HTML and it looks like this:

<ion-grid text-center>
    <ion-row wrap>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
    </ion-row>
    <ion-row wrap>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
      <ion-col width-25><page-rasp class="center"></page-rasp></ion-col>
    </ion-row>
  </ion-grid>

How i can do this in Typescript ??? How i can implement html code thanks to a call from typescript file?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70762

Trending Articles



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