mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-02-13 22:11:51 +00:00
20 lines
437 B
JavaScript
20 lines
437 B
JavaScript
|
'use strict';
|
||
|
const angular = require('angular');
|
||
|
|
||
|
/*@ngInject*/
|
||
|
export function yamlService() {
|
||
|
// AngularJS will instantiate a singleton by calling "new" on this function
|
||
|
|
||
|
this.$get = ['$window', function ($window) {
|
||
|
// configure JSONEditor using provider's configuration
|
||
|
console.log("Window");
|
||
|
|
||
|
return $window.YAML;
|
||
|
}];
|
||
|
|
||
|
}
|
||
|
|
||
|
export default angular.module('webAppApp.yaml', [])
|
||
|
.factory('YAML', yamlService)
|
||
|
.name;
|