1
0
Fork 0
mirror of https://github.com/mmumshad/ansible-playable.git synced 2025-02-13 18:51:54 +00:00
ansible-playable/client/app/providers/ansi2html/ansi2html.service.js
Mumshad Mannambeth c92f737237 Initial Commit
2017-06-07 13:36:45 -04:00

32 lines
698 B
JavaScript

'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;