In the html file there are tags for displaying information:
<div class="container" ng-controller="MainController"> <span class="blc" ng-repeat="process in processess"> <i class="fa fa-space-shuttle"></i> <span class="p-left ">{{ process.caption }}</span> </span> </div> What to do, tell me how to properly handle ng-repeat when processing ajax-ohm?
app.controller('MainController', ['$scope', function($scope) { /* если оставить так, то данные выведутся, ибо они уже присутствуют при загрузке страницы $scope.processess = [ {caption: "ОПИСАНИЕ_1"}, {caption: "ОПИСАНИЕ_2"} ]; */ // однако, данные лежат в базе, и я их вытаскиваю через jquery.ajax + custom service.processtypes().then(function(data){ // $scope.processess не отрабатывает и не отображается на странице $scope.processess = [ {caption: data[0]}, {caption: data[1]} ]; }); }]); What to do, tell me how to properly handle ng-repeat when processing ajax-ohm?
service.processtypes- Grundyservice.processtypes- Grundy