Skip to content

Commit

Permalink
docs: add default value for index
Browse files Browse the repository at this point in the history
  • Loading branch information
shhdharmen committed Oct 5, 2024
1 parent eb8afc2 commit 74b6fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/ngxpert/coolshapes/src/lib/shapes/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class BaseCategoryShapeComponent {
/**
* The index of shape within the shape category, it would randomly select a shape from the category if type inputs given. index starts from 0.
*/
index = input<number>();
index = input<number>(0);

/**
* If set true it will select a random shape
Expand Down

0 comments on commit 74b6fd2

Please sign in to comment.