Reputation: 153
I have multiple questions about development that's I find very hard to find in forums and most of the time not being noticed on chat rooms:
How do I receive parameter from a route? This one is very hard to find..
How to remove Action Bar throughout the Android part of things, tried but failed:
How to center the text inside the label vertically, tried vertical-align: middle and vertical-align: middle but both
Please help. Thank you. :)
Upvotes: 0
Views: 102
Reputation: 1919
In regard to your first question, you could review this angular article, where have been shown how to send parameters via angular router.
In case you want to hide the ActionBar
you could set startPageActionBarHidden
property to true
in your main.ts
For example:
main.ts
import {nativeScriptBootstrap} from "nativescript-angular/application";
import {AppComponent} from "./app.component";
import { NS_ROUTER_PROVIDERS } from "nativescript-angular/router";
nativeScriptBootstrap(AppComponent,[NS_ROUTER_PROVIDERS],{ startPageActionBarHidden: true });
About your last question, you could use vertical-align
for the Label in your css
file.
app.css
label{
vertical-align: center;
}
I hope this is applicable for you. However it would help if you could give me more info about your problem.
Upvotes: 2