import { ChangeDetectionStrategy, Component, Input, OnInit, OnDestroy } from '@angular/core';

import { BreadcrumbsService } from '@csdr/core';

@Component({
    selector: '@module.scope-name@-ct',
    changeDetection: ChangeDetectionStrategy.OnPush,
    template: `
        <@module.scope-name@-cp>
        </@module.scope-name@-cp>`,
})
export class @module.class.name@ContainerComponent implements OnInit, OnDestroy {

    constructor(private breadcrumbs: BreadcrumbsService) {
    }

    ngOnInit(): void {
        this.breadcrumbs.removeAll();
        this.breadcrumbs.addItem({
            id: '@module.scope-name@',
            description: '@module.class.name@',
            url: '/@module.scope-name@',
        });
    }

    ngOnDestroy(): void {
    }
}
