| Matteo Scandolo | 86f3f28 | 2016-08-11 11:21:33 -0700 | [diff] [blame] | 1 | (function () { |
| 2 | 'use strict'; | ||||
| 3 | angular.module('xos.UITutorial') | ||||
| 4 | .service('ErrorHandler', function(){ | ||||
| 5 | this.print = (msg, done) => { | ||||
| 6 | const errorTpl = _.template(`<span class="error">[ERROR] <%= msg %></span>`); | ||||
| 7 | done(errorTpl({msg: msg})); | ||||
| 8 | }; | ||||
| 9 | }); | ||||
| 10 | })(); | ||||