Skip to content

Commit

Permalink
refactor(switch-properties): update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
flaurens committed Jan 19, 2021
1 parent 7858d95 commit fb3a064
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -28,7 +28,8 @@ export class SwitchPropertiesComponent implements OnInit {
constructor() { }

ngOnInit(): void {
// convert from boolean (1/0) to boolean (true/false)
// the input isRequiredProp provided by KeyValuePair is stored as a number
// a conversion from a number to a boolean is required by the input valueRequiredValidator
this.isRequiredProp = !!+this.isRequiredProp;
}

Expand Down

0 comments on commit fb3a064

Please sign in to comment.