Relationship
This section describes the BfmCompanyRelationshipComponent component.
Usage
You can import the BfmCompanyRelationshipComponent directly in your route configuration.
company-relationship.ts
import { BfmCompanyRelationshipComponent } from 'celerofinancas/ui-company-kit';
But if you need more customization, you need to import it in your module and use it in your template.
company-relationship.component.ts
import { BfmCompanyRelationshipComponent } from '@celerofinancas/ui-company-kit';
@Component({
selector: 'company-related-relationship',
imports: [BfmCompanyRelationshipComponent],
templateUrl: './company-related-relationship.component.html',
standalone: true,
})
export class CompanyRelationshipComponent {}
Then, in your template, you can use the component like this:
company-relationship.component.html
<bfm-company-relationship
[relationType]="relation_type"
[companyRelatedPk]="companyRelatedPk"
(companyRelatedChanges)="companyRelated$.next($event)"
/>
Inputs
The BfmCompanyRelationshipComponent component has the following inputs:
relationType
Company relationship type.
| Type | Default |
|---|---|
COMPANY_RELATIONSHIP | COMPANY_RELATIONSHIP.undefined |
companyRelatedPk
Company related primary key.
| Type | Default |
|---|---|
string | '' |
loading
Loading state.
| Type | Default |
|---|---|
boolean | false |
Events
The BfmCompanyRelationshipComponent component has the following events:
companyRelatedChanges
Emits the company related changes.
| Type |
|---|
Observable<CompanyRelated> |