Update to LoginClient Plugin
[src/app-framework-demo.git] / afb-client / app / Frontend / pages / Sample / SampleModule.js
1 (function() {
2 'use strict';
3
4 // list all rependencies within the page + controler if needed
5 angular.module('SampleModule', ['SubmitButton','UploadFiles'])
6
7   .controller('SampleController', function ($http) {
8         var scope = this; // I hate JavaScript
9
10         console.log ("sample Init");
11         
12         scope.FileUploaded = function (response) {
13            console.log ("FileUploaded response=%s", JSON.stringify(response));
14         };
15    });
16
17 console.log ("SampleControler Loaded");
18 })();