question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ngx-admin customized login style

See original GitHub issue

Issue type

Style not works I’m submitting a … (check one with “x”)

  • bug report
  • feature request

Issue description

Current behavior:

Expected behavior:

Steps to reproduce:

Related code:

insert short code snippets here

Other information:

npm, node, OS, Browser

<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->

Angular, Nebular

<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

13reactions
dizcocommented, Jan 14, 2019

To remove the back arrow, you should override the NbAuthComponent with your own, just like you did for the NbLoginComponent.

Then, you change your auth routing module to look like

export const routes: Routes = [
    {
        path: '',
        component: AuthComponent, // <-- Notice this here, use your own instance
        children: [
            {
                path: 'login',
                component: LoginComponent,
            },
        ],
    },
];

Obviously, you’ll want to create your own instance of AuthComponent. Here’s mine:

import { Component } from '@angular/core';
import { NbAuthComponent } from '@nebular/auth';

@Component({
    selector: 'auth',
    styleUrls: ['./auth.component.scss'],
    template: `
    <nb-layout>
      <nb-layout-column>
        <nb-card>
          <nb-card-body>
            <nb-auth-block>
              <router-outlet></router-outlet>
            </nb-auth-block>
          </nb-card-body>
        </nb-card>
      </nb-layout-column>
    </nb-layout>
  `,
})
export class AuthComponent extends NbAuthComponent {
}

You will also need to copy auth.component.scss from the nebular repo, unfortunately. But that should be it 😃

6reactions
joemak93commented, Dec 7, 2018

Hello @Prefix1802 @nnixaa , May I know how to remove the “back button” in the page top-left? screen shot 2018-12-07 at 3 37 43 pm

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to modify login page in ngx-admin - Stack Overflow
I started using the ngx-admin template, and i want to modify the login page. unfortunately, i couldn't find the login component in the ......
Read more >
Ngx-admin - Theme System - GitHub Pages
Theme System in is a set of rules we put into how SCSS files and variables are organized. Theme Map | Component Variables...
Read more >
Learn NGX Admin (Change Login Page) - YouTube
Full length Project tutorials · Angular Login and Signup using JSON-Server | Angular Routing | Angular Reactive Form| · Angular 8 Admin Dashboard ......
Read more >
ngx-admin/Nebular) How to remove back button on my custom ...
[Solved]-(ngx-admin/Nebular) How to remove back button on my custom login component?-angular.js ... When I add this css to the src\app@theme\styles\styles.scss , ...
Read more >
An Introduction to Nebular by Akveo — #Nebular101 Pt. 1
Nebular using ngx-admin template to support UI Components and you can use Eva ... You can customize all style components using SCSS, whether...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found