title: String and integer comparison AngularJS
body: <p>Tech used:</p>
  <ul>
  <li>PHP 5.4</li>
  <li>AngularJS 1.2 rc2</li>
  </ul>
  <p>I'm having an issue when I save a value from a <code>select</code> it saves to my DB fine, but when I $http.get the object from my API the <code>select</code> in my template does not select the correct option without me converting it to a string first.</p>
  <pre><code>&lt;select
      class='input-xlarge'
      ng-model='main.newGoal.end_day'
      ng-options='key as val for (key, val) in options.weekDays'&gt;
      &lt;option value=''&gt;-- Select a Day --&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  <p>I've checked the object from my API and I receive an INT of the correct value but I have convert it to a string to make it select correctly in my html template:</p>
  <pre><code>$scope.main.newGoal.end_day = $scope.main.newGoal.end_day + &quot;&quot;;
  </code></pre>
  <p>Before when my API returned numbers as STRINGs the <code>select</code> worked fine.  I changed this behavior because AWS Elastic Beanstalk PHP does this by default and is my production server.</p>
  <p>How do I make &quot;1&quot; == 1 in my html template easily?</p>
  <h2>Update</h2>
  <p>I forgot to add an example of my source:</p>
  <pre><code>$scope.options = {
    weekDays: [&quot;Monday&quot;, &quot;Tuesday&quot;, &quot;Wednesday&quot;, &quot;Thursday&quot;, &quot;Friday&quot;, &quot;Saturday&quot;, &quot;Sunday&quot;]
  };
  </code></pre>
  <p>I receive something like:</p>
  <pre><code>$scope.main = {
    newGoal: {
      end_day: 5,
      start_day: 0
    }
  }
  </code></pre>