Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] add repeat directive #14

Closed
nartc opened this issue Sep 11, 2023 · 0 comments · Fixed by #19
Closed

[feat] add repeat directive #14

nartc opened this issue Sep 11, 2023 · 0 comments · Fixed by #19
Assignees
Labels
enhancement New feature or request

Comments

@nartc
Copy link
Collaborator

nartc commented Sep 11, 2023

No description provided.

nartc added a commit that referenced this issue Sep 11, 2023
closes #14

This PR adds `Repeat` directive that extends `NgFor`. This directive allows consumers to iterate over a number of times instead of a list of items

```html
<!-- before -->
<p *ngFor="let i of [0, 1, 2]">{{ i }}</p>

<!-- after -->
<p *ngFor="let i; repeat 3">{{ i }}</p>
```
@nartc nartc self-assigned this Sep 11, 2023
@nartc nartc added the enhancement New feature or request label Sep 11, 2023
nartc added a commit that referenced this issue Sep 11, 2023
closes #14

This PR adds `Repeat` directive that extends `NgFor`. This directive allows consumers to iterate over a number of times instead of a list of items

```html
<!-- before -->
<p *ngFor="let i of [0, 1, 2]">{{ i }}</p>

<!-- after -->
<p *ngFor="let i; repeat 3">{{ i }}</p>
```
nartc added a commit that referenced this issue Sep 11, 2023
closes #14

This PR adds `Repeat` directive that extends `NgFor`. This directive allows consumers to iterate over a number of times instead of a list of items

```html
<!-- before -->
<p *ngFor="let i of [0, 1, 2]">{{ i }}</p>

<!-- after -->
<p *ngFor="let i; repeat 3">{{ i }}</p>
```
@nartc nartc closed this as completed in #19 Sep 11, 2023
nartc added a commit that referenced this issue Sep 11, 2023
closes #14

This PR adds `Repeat` directive that extends `NgFor`. This directive allows consumers to iterate over a number of times instead of a list of items

```html
<!-- before -->
<p *ngFor="let i of [0, 1, 2]">{{ i }}</p>

<!-- after -->
<p *ngFor="let i; repeat 3">{{ i }}</p>
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant