File

projects/ngx-list-view/src/lib/components/counter/ngx-counter.component.ts

Metadata

selector ngx-counter
templateUrl ngx-counter.component.html

Index

Inputs

Inputs

customTemplate

Default value: false

end

Default value: 1

label

Default value: ''

start

Default value: 1

total

Default value: 0

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

@Component({
    selector: 'ngx-counter',
    templateUrl: 'ngx-counter.component.html'
})
export class NgxCounterComponent {
    @Input() start = 1;
    @Input() end = 1;
    @Input() total = 0;
    @Input() label = '';
    @Input() customTemplate = false;
}
<span *ngIf="total > 0 && !customTemplate">
    <strong>
        <span>{{start}}</span> - <span>{{end}}</span>
    </strong>
    of
    <strong>{{total}}</strong>
     {{label}}
</span>
<ng-template [ngIf]="customTemplate">
    <ng-content></ng-content>
</ng-template>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""