how to print type of variable in angular HTML code example Example: angular type of string if(typeof myVariable === 'string'){ //do }