1.0.1 ā¢ Published 3 years ago
ng-for-repeat v1.0.1
ng-for-repeat
š A simple Angular directive to repeat an element.
Installation
npm install ng-for-repeat
Add NgForRepeatModule
to your module imports :
import { NgForRepeatModule } from 'ng-for-repeat';
@NgModule({
...
imports: [NgForRepeatModule],
})
export class AppModule {}
Usage
<div *ngForRepeat="3">
...
</div>
or
<div *ngFor="let x repeat 3">
...
</div>