1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-13 22:11:51 +00:00
ansible-playable/client/app/providers/ansi2html/ansi2html.service.js

33 lines
698 B
JavaScript
Raw Normal View History

2017-06-07 17:36:44 +00:00
'use strict';
const angular = require('angular');
var ansi_to_html = require('ansi-to-html');
/*@ngInject*/
export function ansi2htmlProvider() {
// Private variables
var salutation = 'Hello';
// Private constructor
function Greeter() {
this.greet = function() {
return salutation;
};
}
// Public API for configuration
this.setSalutation = function(s) {
salutation = s;
};
// Method for instantiating
this.$get = ['$window', function ($window) {
// configure JSONEditor using provider's configuration
return new ansi_to_html();
}];
}
export default angular.module('webAppApp.ansi2html', [])
.provider('ansi2html', ansi2htmlProvider)
.name;