темплейте выполнялось выражение из .description?
                  
                  
                  -- t.component.tst
                  
                  
                  js
                  
                  
                  this.tips = [
                  
                  
                        {
                  
                  
                          id: 1,
                  
                  
                          category: [],
                  
                  
                          tags: [],
                  
                  
                          description: (`
                  
                  
                  ... text ...
                  
                  
                  <textarea highlight-js [options]="{}" [lang]="'typescript'">
                  
                  
                  var c = 1;
                  
                  
                  </textarea>
                  
                  
                  ... text ...
                  
                  
                          `),
                  
                  
                        }
                  
                  
                      ];
                  
                  
                  -- t.component.httml
                  
                  
                  Пока нашёл только <div [innerHTML] = tip.description></div>, но ничего не происходит
                  
                  
                
А что за конструкция description: ('')? Зачем скобки?) В innerHtml должно работать если туда html отжать, а у Вас там судя по всему не html?)
Это остатки от конструкции this.sanitizer.bypassSecurityTrustHtml 🙂
Обсуждают сегодня