Skip to main content

Unauthorized

This section describes the BfmUnauthorizedComponent component.

Usage

You can import the BfmUnauthorizedComponent directly in your route configuration.

import { BfmUnauthorizedComponent } from '@celerofinancas/ui-user-kit';

const routes = [
{
path: 'unauthorized',
component: BfmUnauthorizedComponent,
},
];

But if you need more customization, you need to import it in your module and use it in your template.

unauthorized.component.ts
import { BfmUnauthorizedComponent } from '@celerofinancas/ui-user-kit';

@Component({
standalone: true,
selector: 'unauthorized',
imports: [BfmUnauthorizedComponent],
templateUrl: './unauthorized.component.html',
})
export class CustomUnauthorizedComponent {}

Then, in your template, you can use the component like this:

unauthorized.component.html
<bfm-unauthorized 
[subTitle]="'A sua visualização para essa página está restrita.'"
[title]="'Ops… Você não tem acesso a essa página.'"
/>

Inputs

The BfmUnauthorizedComponent component has the following inputs:

subTitle

Custom Component SubTitle

TypeDefault
string'A sua visualização para essa página está restrita.'

title

Custom Component Title

TypeDefault
string'Ops… Você não tem acesso a essa página.'

Events

The BfmUnauthorizedComponent component has no events.