-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to add nebular source to ngx-admin #1250
Comments
Hi @sunnychan16, could you elaborate on a reason why you need to copy over the library sources, please? |
Have you tried following this doс https://akveo.github.io/nebular/docs/auth/custom-auth-components#custom-auth-components? |
Hello @nnixaa I have the same issue as @sunnychan16, exactly the same posted in this issue. |
I have followed the example here : https://akveo.github.io/nebular/docs/auth/custom-auth-components#custom-auth-components, but I simply created my own NgxAuthComponent. I registered in it auth-routing.module.ts as instructed in the link posted above but when I run the app, my page is never displayed, it just stays in loading stage. I checked for errors in the browser and there was none. created NgxAuthComponent to replace NbAuthComponent : (src/pages/auth/auth.module.ts) import { CommonModule } from '@angular/common'; import { NgxAuthRoutingModule } from './auth-routing.module'; import { import { NbAuthModule } from '@nebular/auth'; @NgModule({ create auth.component (from nebular) import { NbAuthService } from '@nebular/auth'; import { Component, OnDestroy } from '@angular/core'; import { takeWhile } from 'rxjs/operators'; //Just trying to take away the pesky back button
subscription: any; authenticated: boolean = false; // showcase of how to use the onAuthenticationChange method
} back() { ngOnDestroy(): void { } create auth-routing.module.ts (src/app/pages/auth/auth-routing.module.ts) import { NgModule } from '@angular/core'; export const routes: Routes = [ @NgModule({ registered this into the app routing const routes: Routes =[ but nothing is displayed!!!! |
Issue type
I'm submitting a ... (check one with "x")
Issue description
Current behavior:
Sorry to bother if this is some stupid question, I am still picking up Angular and Nebular.
I am trying to do some customization to to ngx-admin, but I am not able to compile after I added the source of nebular into the project.
Expected behavior:
It should compile after adding the source.
Steps to reproduce:
Checkout both nebular and ngx-admin. Put nebular's
nebular/src/framework/auth
folder intongx-admin/src/app/nebular/src/framework/auth
Related code:
Here is the response I got for trying to run the project.
Other information:
npm, node, OS, Browser
Angular, Nebular
The text was updated successfully, but these errors were encountered: