Maybe some code would help to understand the problem: 

*index.html*
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html lang="fr">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=7">
  <title>test ie7</title>
  <link rel="stylesheet" href="css/app.css">
  <link rel="stylesheet" href="css/bootstrap.css">
  <script src="lib/xml2json.js"></script>
  <!--[if lte IE 8]>
    <script src="lib/json3.min.js"></script>
  <![endif]-->
  <!--[if lt IE 9]>
    <script 
src="http://html5shim.googlecode.com/svn/trunk/html5.js";></script>
  <![endif]-->
  <script src="lib/angular/angular1.2.12.min.js"></script>
  <script src="js/controllers.js"></script>
</head>
<body>

  <div id="ng-app" ng-app="cardsApp">
    <div ng-controller="CardsListCtrl">
      <div>
        Search : <input ng-model="query">
      </div>
      <div>
        <ul>
          <li ng-repeat="card in cards | filter:query">
            {{card.name}}
            <p>{{card.reference}}</p>
          </li>
        </ul>

      </div>
      
    </div>
  </div>

</body>
</html>

*controller.js: *
'use strict';

/* Controllers */

angular.module('ie7support', []).config(function($sceProvider) {
  // Completely disable SCE to support IE7.
  $sceProvider.enabled(false);
});

var cardsApp = angular.module('cardsApp', []);

cardsApp.controller('CardsListCtrl', function($scope, $http) {
  $http.get('xml/cards.xml').then(function(response) {
    var cards_arr = [];
    /*setting up the response*/
    var cardsDef = x2js.xml_str2json(response.data);
    $scope.cardsObj = cardsDef.allcarteinfo.carteinfo;

    /*looping through the chapters*/
    var nbCards = $scope.cardsObj.length;
    for (var i = 0; i < nbCards; i++) {
      cards_arr.push({
        name: $scope.cardsObj[i].name,
        reference: $scope.cardsObj[i].reference
      });
    }

    $scope.cards = cards_arr;
  });
});

Thanks for your help

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To post to this group, send email to angular@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to