How to convert number type into string type in Angular 10

  angular, typescript

I am new to Angular. I need help to convert a number value into a string value. I tried to convert with my_number.toString(). But it gets me an error "toString() of undefined". here is my simple conversion code

let id:string =  user.Id.toString();

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.