@rinatoptimus

Как отобразить разметку Ant.Design в Pug?

Есть компонент Card:
import { Component } from '@angular/core';
@Component({
  selector: 'nz-demo-card-basic',
  template: `
    <nz-card style="width:300px;">
      <ng-template #title>
        Card title
      </ng-template>
      <ng-template #extra>
        <a>More</a>
      </ng-template>
      <ng-template #body>
        <p>Card content</p>
        <p>Card content</p>
        <p>Card content</p>
      </ng-template>
    </nz-card>
  `,
  styles  : []
})
export class NzDemoCardBasicComponent { }

Взят отсюда: https://ng.ant.design/#/components/card
Хочу отобразить его в файле pug:

nz-card(style="width:300px;")
    ng-template#title Card title

    ng-template#extra
        a More

    ng-template#body
        p Card content
        p Card content
        p Card content

В результате карточка отображается пустой. С другими компонентами такой проблемы нет. Компиллируется без ошибок. Не подскажете, в чем дело?
  • Вопрос задан
  • 118 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы