Skip to content

Commit 74b6fd2

Browse files
committed
docs: add default value for index
1 parent eb8afc2 commit 74b6fd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

projects/ngxpert/coolshapes/src/lib/shapes/components.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class BaseCategoryShapeComponent {
88
/**
99
* 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.
1010
*/
11-
index = input<number>();
11+
index = input<number>(0);
1212

1313
/**
1414
* If set true it will select a random shape

0 commit comments

Comments
 (0)