title: Value not passing to view in angularjs
body: <p>I am trying to display a value in angularJS and cannot figure out why it won't print.</p>
  
  <p>I have defined the variable as <code>$scope.totalBTC</code>, and calling it with <code>{{totalBTC}}</code>. Seems straight forward but I cannot make it work.</p>
  
  <p>app.js</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>app.controller('exchangeValuesController', function($scope, $http) {
    $scope.totalBTC = 0;
    $scope.exchangeValues = [];
  
    var request = $http.get('/exchange-values');
  
    request.success(function(exchangeValues) {
  
      $scope.exchangeValues = exchangeValues;
      $scope.totalBTC = exchangeValues.totalBTC;
      console.log('totalBTC: ' + exchangeValues.totalBTC) // totalBTC: 9.45
    });
  
    request.error(function(err) {
      console.log('Error: ' + err);
    });
  });</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>index.ejs
  
  &lt;h1&gt;Poloniex Balances&lt;/h1&gt;
  &lt;div ng-controller="exchangeValuesController"&gt;
    &lt;p&gt;
      &lt;!-- totalBTC will not print on the ejs page --&gt;
      &lt;h1&gt;Total BTC Value: {{totalBTC}}&lt;/h1&gt;
    &lt;/p&gt;
    &lt;table class="table"&gt;
      &lt;tr&gt;
        &lt;th&gt;Currency&lt;/th&gt;
        &lt;th&gt;Amount&lt;/th&gt;
        &lt;th&gt;rate&lt;/th&gt;
        &lt;th&gt;Total BTC Value&lt;/th&gt;
      &lt;/tr&gt;
      &lt;tr ng-repeat="currency in exchangeValues"&gt;
        &lt;!-- these values are correctly printing  --&gt;
        &lt;td&gt;{{currency.currency}}&lt;/td&gt;
        &lt;td&gt;{{currency.amount}}&lt;/td&gt;
        &lt;td&gt;{{currency.rate}}&lt;/td&gt;
        &lt;td&gt;{{currency.totalBTC}}&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>How I can make {{totalBTC}} display correctly?</p>