R
R
rinatoptimus2018-02-10 10:04:32
HTML
rinatoptimus, 2018-02-10 10:04:32

How to display Ant.Design markup in Pug?

There is a Card component:

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 { }

Taken from here: https://ng.ant.design/#/components/card
I want to display it in a pug file:
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

As a result, the card is displayed empty. Other components do not have this problem. Compiles without errors. Can you tell me what's the matter?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question