доступ к переменным angular 2 в jquery

Следуя примеру Асада в этом связанном вопросе, я не знаю как обратиться к объекту этого самого javascript и углового варибале.

// Original code, the angular variable don't work

$.FroalaEditor.RegisterCommand('insert', {
                title: 'Insert Read More',
                focus: true,
                undo: true,
                refreshAfterCallback: true,
                callback: function () {
                  this.html.insert('<span class="readMore">'+this.angularVariable+' </span>');
                }
              });

// using fat arrows, the angular variable works but this.html.insert fails

$.FroalaEditor.RegisterCommand('insert', {
                        title: 'Insert Read More',
                        focus: true,
                        undo: true,
                        refreshAfterCallback: true,
                        callback: () => {
                          this.html.insert('<span class="readMore">'+this.angularVariable+' </span>');
                        }
                      });

person xavier cet    schedule 04.09.2017    source источник
comment
Это зависит от того, где находится ваш приведенный выше код, но вопрос не содержит никакой информации об этом.   -  person Günter Zöchbauer    schedule 04.09.2017
comment
где вы инициализировали this.html? покажите код пожалуйста...   -  person Vikhyath Maiya    schedule 04.09.2017
comment
froalaEditor инициализирует this.html, это метод jquery, а не угловой froala.com/ wysiwyg-editor/примеры/пользовательские кнопки   -  person xavier cet    schedule 04.09.2017