Answer the question
In order to leave comments, you need to log in
How to change username in SideDrawer (NativeScript)?
There is such a template: https://github.com/NativeScript/nativescript-app-t...
This is an application with a sliding menu.
The app.component.html
menu itself is written:
<RadSideDrawer [drawerTransition]="sideDrawerTransition">
<GridLayout tkDrawerContent rows="auto, *" class="sidedrawer sidedrawer-left">
<StackLayout row="0" class="sidedrawer-header">
<Label class="sidedrawer-header-image fa" text=""></Label>
<Label class="sidedrawer-header-brand" text="User Name"></Label>
<Label class="footnote" text="[email protected]"></Label>
</StackLayout>
</GridLayout>
<page-router-outlet tkMainContent class="page page-content"></page-router-outlet>
</RadSideDrawer>
auth.service.ts
inside which the user is authenticated. The user data comes from the server. How to change the username in the menu while receiving data from the server? [text]="userName"
userName
to the class AppComponent
, then everything works as it should. But how to change the field from the service?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question