angular 6 convert string to boolean code example Example: angular convert boolean to string var myBool: bool = true; var myString: string = String(myBool);