Comments (10)
@miguelleitevieira
you can do this :
userMenu = [
{ title: 'Profile' },
{ title: 'Log out', link: '/logout' }
];
from nebular.
@nnixaa I have a doubt.
I'm trying to add a function to the logout option.
userMenu = [
{ title: 'Profile' },
{ title: 'Log out', click: console.log('/login') }
];
But this runs when the class is instantiated.
You know how I can solve this?
from nebular.
Hey @jogamod would you mind sharing your code? As <user (menuClick)="onMenuClick($even)">
should work.
from nebular.
I meet to so problem, How to do? maybe have code example?
from nebular.
<nb-user [menu]="userMenu" [name]="user?.name" [picture]="user?.picture" (menuClick)="onMenuClick($even)">
from nebular.
<nb-user [menu]="userMenu" [name]="user?.name" [picture]="user?.picture" (menuClick)="onMenuClick($even)">
is error
How to setting?
from nebular.
@YukiDmZhao what errors are you getting?
from nebular.
onMenuClick($even){
console.log('$even======>',$even);
}
$even======> undefined
can not run I want to function
from nebular.
@YukiDmZhao it should be $event
with t
and the end in your template.
from nebular.
@sKaouech very good tick...
I used of routerlink into logout function that has a problem and redirected to login page.
logOut() {
this.authService.logout('email')
this.router.navigate(['/auth/logout']);
}
@nnixaa Why past my solution has a problem?
from nebular.
Related Issues (20)
- logout
- logout
- pipe table
- Theme is not a map.
- Could not read Angular module file: /src/null.ts (Standalone) or /src/[object Object].ts (ng modules) HOT 6
- Docs: latest version 9.0.0 but appear to have version 13 installed HOT 2
- NbTreeGrid Error NullInjectorError: No provider for InjectionToken CDK_TABLE! HOT 14
- RangePicker only Month and Year
- Request for Multiline Input Support in <nb-chat-from> Component
- angular/[email protected]: [ERROR] TS2610 in NbTable HOT 11
- Same issue with Angular 17
- When I open an NbDialog first and then open an NbWindow, the window will be displayed behind the dialog. How can I resolve this issue?
- When I tried to open a dialog, the following exception occurred.
- customized login style HOT 1
- Microfrontend problem : does not provide an export named 'icons' (at _nebular_eva_icons-13_0_0-dev.js:24:10)
- NullInjectorError when using NbChatModule in Angular 17 with Nebular 13 (standalone components angular) HOT 1
- Support for Angular 18
- `NbDialogService` has problem with `inputSignal` and `ModelSignal`
- 'sticky' is defined as an accessor in class 'CdkColumnDef', but is overridden here in 'NbColumnDefDirective' as an instance property. HOT 4
- print preview by scale in chrome version 126 for RTL direction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nebular.