Timeline for How to increment my value in angular js?
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Dec 13, 2016 at 23:20 | history | edited | Mihai Alexandru-Ionut | CC BY-SA 3.0 |
edited title
|
| S Dec 13, 2016 at 7:38 | history | suggested | Dawid Rutkowski | CC BY-SA 3.0 |
Code formatting updated
|
| Dec 13, 2016 at 7:14 | comment | added | Sebastian Lagua | Yeah actually need int) Thanks) | |
| Dec 13, 2016 at 7:14 | vote | accept | Sebastian Lagua | ||
| Dec 13, 2016 at 7:04 | answer | added | Alexander Kravets | timeline score: 2 | |
| Dec 13, 2016 at 7:00 | answer | added | Kishan Mundha | timeline score: 0 | |
| Dec 13, 2016 at 6:59 | answer | added | Mihai Alexandru-Ionut | timeline score: 3 | |
| Dec 13, 2016 at 6:58 | review | Suggested edits | |||
| S Dec 13, 2016 at 7:38 | |||||
| Dec 13, 2016 at 6:56 | comment | added | RobG |
You are probably adding 1 to a string, so getting concatenation rather than addition. Convert the string to a number first, say +post.likes + 1 or Number(post.likes) + 1 or parseInt(post.likes) + 1 or whatever…
|
|
| Dec 13, 2016 at 6:53 | history | asked | Sebastian Lagua | CC BY-SA 3.0 |