title: include page with ng-include, angularjs
body: <p>Im trying to include a file with ng-include, but it don't work. The file should be included when you press on a button:</p>
  
  <pre><code>&lt;button type="submit" class="btn btn-primary" ng-click="getPartial()"&gt;Jämför&lt;/button&gt;
  </code></pre>
  
  <p>Here is my function in the controller:</p>
  
  <pre><code>$scope.getPartial = function() {
              $scope.showCompare = '../partials/compare.html';
              console.log($scope.showCompare);
          };
  </code></pre>
  
  <p>And here is my div:</p>
  
  <pre><code>&lt;div data-ng-include data-ng-src="showCompare"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Nothing is included. Have I done something wrong?</p>