AngularJS - Several scope values in parameter of a function -
i have problem since few days... cross several scope values in same parameter of function , if possible separate 1 '-' impossible find how make, tried everything... here code :
// controller pour afficher les groupes de la champions league .controller('championsleaguectrl', function($scope, footballdatafactory, $stateparams, $ionicloading) { var groupe = 'abcdefgh'; $ionicloading.show({ template: "<ion-spinner icon='bubbles'></ion-spinner> <div class='chargement'>chargement...</div>" }); footballdatafactory.getleaguetablebyseason({ id: $stateparams.division, apikey: apikey, }) .then(function(response){ $ionicloading.hide(); $scope.teams = {response, groupe}; }); }) <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script> <ion-view view-title="foothub"> <ion-content class="teams"> <div id="teams" ng-repeat="n in [].constructor(8) track $index" ng-controller="homectrl" ng-click="search(teams.groupe[$index], teams.response.data.standings[teams.groupe[$index]][0].teamid - teams.response.data.standings[teams.groupe[$index]][1].teamid)"> <p class="groupe">groupe {{ teams.groupe[$index] }}</p> <p>{{ teams.response.data.standings[teams.groupe[$index]][0].teamid }} - {{ teams.response.data.standings[teams.groupe[$index]][1].teamid }}</p> </div> </ion-content> </ion-view> the first parameter works second not ... necessary know have many values in parameters. first 1 char , others int wish separate 1 '-'
can me please ?
thanks lot.
Comments
Post a Comment