mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
24 lines
597 B
TypeScript
24 lines
597 B
TypeScript
|
|
/**
|
||
|
|
* @license
|
||
|
|
* Copyright Akveo. All Rights Reserved.
|
||
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||
|
|
|
||
|
|
@Component({
|
||
|
|
selector: 'ngx-md-block',
|
||
|
|
template: `
|
||
|
|
<nb-card *ngFor="let section of source;" [ngxFragment]="section.fragment">
|
||
|
|
<nb-card-body>
|
||
|
|
<div [innerHtml]="section.html"></div>
|
||
|
|
</nb-card-body>
|
||
|
|
</nb-card>
|
||
|
|
`,
|
||
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||
|
|
})
|
||
|
|
export class NgxMdBLockComponent {
|
||
|
|
|
||
|
|
@Input() source: string;
|
||
|
|
}
|