PageSourceSearch

https://coe-ngo.org/js/controllers/AocCtrl.js

js coe-ngo.org collected 2026-10-02 11:58:51 UTC 645 bytes, 36 lines download raw bytes

1angular.module('IngoApp').controller('AocCtrl', 
2['$scope', '$http', function($scope, $http){
3  
4  
5  $http.get('/aoc').then(
6      function(res) {
7        $scope.aocs = res.data;
8      },
9      function(error) {
10          alert('erreur ' + error.status);
11      }
12  );
13  
14  $scope.saveAoc = function() {
15    
16    var data = $scope.aoc;
17    //console.log(data);
18    
19
20    $http.post('/aoc/create', data).then(
21      function onSuccess(res) {
22        console.log(res);
23        $scope.aocs.push(res.data);
24      }, 
25      function onError() {
26        
27      });
28
29    
30    // empty fields  
31    $scope.aoc = "";
32    
33    // flash message
34  }
35  
36}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.