Jithin Shaji Jithin Shaji - 2 months ago 17
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

.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.