Jithin Shaji Jithin Shaji - 1 year ago 94
AngularJS Question

How can we convert an integer to string in AngularJs

How can we convert an

integer to string
in AngularJs, like
parseInt()
converts
string to int
.
I tried wit
$parse
, which itself is a wrong approach I think..

Answer Source

.toString() is available, or just add "" to the end of the int

var x = 3,
    toString = x.toString(),
    toConcat = x + "";

Angular is simply JavaScript at the core.