I am working in an angular 4 application ,In this I am trying to add 1 with the parameter value of a method .
Ex: if the method receives 1 as the parameter value I want to add parameter value + 1 inside the method .but it returns 11 instead of 2.
addCount(mCount){
mCount += 1;
console.log(mCount);
}
can anyone help me to solve this
mCountis a string then.mCount = parseInt(mCount) + 1;