AngularJS, a number gets added to a string after a click event
<p>Here is the beginning of my function:</p>

<pre><code>    function get_argumentation(type,id,boxClass, argumentcontent){
        type = type || 'argumentation';
        id = id || 0;
        boxClass = boxClass || 2;
        argumentcontent = argumentcontent || 0;

        alert(type); &lt;== returns 'argument1'
</code></pre>

<p>Here, the function gets called in the view:</p>

<pre><code> ng-click="nextargumentation('argument',211, 4, 0)"
</code></pre>

<p>The alert <code>alert(type)</code> returns <code>'argument1'</code> instead of just <code>'argument'</code>. Can anyone see the problem?</p>

<p>EDIT: </p>

<p>Daniel pointed out the problem: I used the wrong function.</p>