Footer for frontend and report errors link.
This commit is contained in:
parent
124f330895
commit
fa2a047370
10 changed files with 128 additions and 14 deletions
app/scripts/directives
16
app/scripts/directives/footer.js
Normal file
16
app/scripts/directives/footer.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('ffffng')
|
||||
.directive('fFooter', function ($http) {
|
||||
var ctrl = function ($scope) {
|
||||
$scope.version = '?';
|
||||
$http.get('/api/version')
|
||||
.then(function (result) { $scope.version = result.data.version; })
|
||||
};
|
||||
|
||||
return {
|
||||
'controller': ctrl,
|
||||
'restrict': 'E',
|
||||
'templateUrl': 'views/directives/footer.html'
|
||||
};
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue