1

i have a problem, i wan't to create and append a new ionic element into my document while the app are runing and without changing the current page.
i made a illustration to explain
I use the latest version of ionic (3.19.0)

add.html

<ion-content padding>
    <ion-item>
      <ion-label floating>Username</ion-label>
      <ion-input type="text"></ion-input>
    </ion-item>
    <ion-item>
      <ion-label floating>Password</ion-label>
      <ion-input type="password"></ion-input>
    </ion-item>
    <ion-icon name="add-circle" (click)="add"></ion-icon>
</ion-content>

add.ts

import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';

@IonicPage()
@Component({
  selector: 'page-add',
  templateUrl: 'add.html',
})
export class AddPage {
  constructor(public navCtrl: NavController, public navParams: NavParams) {
  }
}
2
  • so what problem you are facing ? Commented Dec 18, 2017 at 10:23
  • I can't find a solution on internet Commented Dec 18, 2017 at 10:24

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.