3.0.0 • Published 5 months ago

ngx-repeat v3.0.0

Weekly downloads
14
License
MIT
Repository
github
Last release
5 months ago

npm version Package License NPM Downloads Snyk codecov stars forks HitCount

Angular directive for repeating HTML element by count

Angular 19 compatible

Here's the demo or stackblitz live preview or codesandbox live preview

  • Lightweight
  • No dependencies!
  • Directive way

🛠️ Install

  1. Use yarn (or npm) to install the package
yarn add ngx-repeat
  1. Add NgxRepeatDirective into your component`
import { NgxRepeatDirective } from 'ngx-repeat';

@Component({
  standalone: true,
  imports: [NgxRepeatDirective /*, ...*/],
   // ...
})

or module

import { NgxRepeatDirective } from 'ngx-repeat';

@NgModule({
 // ...
 imports: [
   // ...
   NgxRepeatDirective
 ]
})

🚀 Quick start

Example code

<div
  *ngxRepeat="3; 
    let index = index;
    let even = even;
    let odd = odd;
    let first = first;
    let last = last;"
>
  {{ index }} {{ even }} {{ odd }} {{ first }} {{ last }}
</div>

Result

  0 true false true false
  1 false true false false
  2 true false false true

🔧 Compatibility

Angularngx-repeatInstall
>= 193.xyarn add ngx-repeat
>= 142.xyarn add ngx-repeat@2
>= 121.xyarn add ngx-repeat@1
>= 5 < 130.xyarn add ngx-repeat@0

📦 Dependencies

None

🪪 License

Copyright © 2021 - 2025 Dominik Hladik

All contents are licensed under the MIT license.

3.0.0

5 months ago

2.2.0

7 months ago

2.1.3

9 months ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

2 years ago

1.1.0

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago