Passing Data Through using Angular Router With NativeScript

Page 1 TS File Raw code :

import {Component} from “@angular/core”;
import {Router, NavigationExtras} from “@angular/router”;

@Component({
selector: “page1”,
templateUrl: “./components/page1/page1.html”,
})
export class Page1Component {

public constructor(private router: Router) { }

public onTap() {
let navigationExtras: NavigationExtras = {
queryParams: {
“firstname”: “Nic”,
“lastname”: “Raboy”
}
};
this.router.navigate([“page2”], navigationExtras);
}

}

Page 2 TS File Raw code :

import {Component} from “@angular/core”;
import {ActivatedRoute} from “@angular/router”;

@Component({
selector: “page2”,
templateUrl: “./components/page2/page2.html”,
})
export class Page2Component {

public firstname: string;
public lastname: string;

public constructor(private route: ActivatedRoute) {
this.route.queryParams.subscribe(params => {
this.firstname = params[“firstname”];
this.lastname = params[“lastname”];
});
}

}

Generate Nativescript Android Certificate Production / how to upload android app to play store nativescript

To use keytool to generate a keystore for code signing, take the following command, replace tj-vantoll with your name or company’s name, and replace NameOfYourApp with the name of your app.

keytool -genkey -v -keystore tj-vantoll.jks -keyalg RSA
-keysize 2048 -validity 10000 -alias NameOfYourApp

The keytool utility will ask you a number of questions, several of which are optional (name of organization, as well as the names of your city/state/country), but the most important ones are the passwords for both the keystore and the alias (more on that momentarily). Here’s what the keytool process looks like when I generate the keystore I used for Pokémon Types

https://www.nativescript.org/blog/steps-to-publish-your-nativescript-app-to-the-app-stores