summaryrefslogtreecommitdiffstats
path: root/afm-client/app/Frontend/pages/Sample/SampleModule.js
blob: 8ae82eadca73c0ce27f056f62f379d7a2854a8c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
(function() {
'use strict';

// list all rependencies within the page + controler if needed
angular.module('SampleModule', ['SubmitButton','UploadFiles'])

  .controller('SampleController', function ($http) {
        var scope = this; // I hate JavaScript

        console.log ("sample Init");
        
        scope.FileUploaded = function (response) {
           console.log ("FileUploaded response=%s", JSON.stringify(response));
        };
   });

console.log ("SampleControler Loaded");
})();