Skip to content

Commit 9aae4c8

Browse files
committed
Fix errors content in all components.
1 parent 87e8e1e commit 9aae4c8

34 files changed

Lines changed: 257 additions & 215 deletions

File tree

src/app/version1.0.0/components/introduction/getting-started/getting-started.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,10 @@ export class GettingStartedComponent implements OnInit {
6363
6464
[
6565
{
66-
Age = [
67-
"Person age must be at least 18 years old."
68-
]
66+
PropertyName = "Age",
67+
ErrorMessages = [
68+
"Person age must be at least 18 years old."
69+
]
6970
}
7071
]
7172
*/`;

src/app/version1.0.0/components/validation/black-list-func/black-list-func.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ export class BlackListFuncComponent implements OnInit {
4747
4848
[
4949
{
50-
Name = [
51-
"Invalid person name."
52-
]
50+
PropertyName = "Name",
51+
ErrorMessages = [
52+
"Invalid person name."
53+
]
5354
}
5455
]
5556
*/`;

src/app/version1.0.0/components/validation/contains-func/contains-func.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ export class ContainsFuncComponent implements OnInit {
3939
errors value will be a List<ValidationError>
4040
4141
[
42-
{
43-
Name = [
44-
"Invalid person name."
45-
]
46-
}
42+
{
43+
PropertyName = "Name",
44+
ErrorMessages = [
45+
"Invalid person name."
46+
]
47+
}
4748
]
4849
*/`;
4950

src/app/version1.0.0/components/validation/custom-validator-func/custom-validator-func.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ export class CustomValidatorFuncComponent implements OnInit {
4646
errors value will be a List<ValidationError>
4747
4848
[
49-
{
50-
Country = [
51-
"Country shouldn't be null."
52-
]
53-
}
49+
{
50+
PropertyName = "Country",
51+
ErrorMessages = [
52+
"Country shouldn't be null."
53+
]
54+
}
5455
]
5556
*/`;
5657

src/app/version1.0.0/components/validation/ends-with-func/ends-with-func.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ export class EndsWithFuncComponent implements OnInit {
3838
errors value will be a List<ValidationError>
3939
4040
[
41-
{
42-
Name = [
43-
"Invalid person name."
44-
]
45-
}
41+
{
42+
PropertyName = "Name",
43+
ErrorMessages = [
44+
"Invalid person name."
45+
]
46+
}
4647
]
4748
*/`;
4849

src/app/version1.0.0/components/validation/is-alpha-func/is-alpha-func.component.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ export class IsAlphaFuncComponent implements OnInit {
3838
errors value will be a List<ValidationError>
3939
4040
[
41-
{
42-
Name = [
43-
"Invalid person name."
44-
]
45-
}
46-
]
41+
{
42+
PropertyName = "Name",
43+
ErrorMessages = [
44+
"Invalid person name."
45+
]
46+
}
47+
]
4748
*/`;
4849

4950
example2 = `

src/app/version1.0.0/components/validation/is-alpha-numeric-func/is-alpha-numeric-func.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ export class IsAlphaNumericFuncComponent implements OnInit {
3838
errors value will be a List<ValidationError>
3939
4040
[
41-
{
42-
Name = [
43-
"Invalid person name."
44-
]
45-
}
41+
{
42+
PropertyName = "Name",
43+
ErrorMessages = [
44+
"Invalid person name."
45+
]
46+
}
4647
]
4748
*/`;
4849

src/app/version1.0.0/components/validation/is-ascii-func/is-ascii-func.component.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ export class IsAsciiFuncComponent implements OnInit {
3838
errors value will be a List<ValidationError>
3939
4040
[
41-
{
42-
Name = [
43-
"Invalid person name."
44-
]
45-
}
41+
{
42+
PropertyName = "Name",
43+
ErrorMessages = [
44+
"Invalid person name."
45+
]
46+
}
4647
]
4748
*/`;
4849

src/app/version1.0.0/components/validation/is-base64-func/is-base64-func.component.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ export class IsBase64FuncComponent implements OnInit {
3838
errors value will be a List<ValidationError>
3939
4040
[
41-
{
42-
Avatar = [
43-
"Invalid avatar."
44-
]
45-
}
46-
]
41+
{
42+
PropertyName = "Avatar",
43+
ErrorMessages = [
44+
"Invalid avatar."
45+
]
46+
}
47+
]
4748
*/`;
4849

4950
example2 = `

src/app/version1.0.0/components/validation/is-credit-card-func/is-credit-card-func.component.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ export class IsCreditCardFuncComponent implements OnInit {
3838
errors value will be a List<ValidationError>
3939
4040
[
41-
{
42-
CreditCardNum = [
43-
"Invalid credit card number."
44-
]
45-
}
46-
]
41+
{
42+
PropertyName = "CreditCardNum",
43+
ErrorMessages = [
44+
"Invalid credit card number."
45+
]
46+
}
47+
]
4748
*/`;
4849

4950
example2 = `

0 commit comments

Comments
 (0)