mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 15:40:11 +01:00
28 lines
762 B
TypeScript
28 lines
762 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-examples-block',
|
||
|
|
template: `
|
||
|
|
<nb-card [ngxFragment]="source.slag">
|
||
|
|
<nb-card-body>
|
||
|
|
<h2>{{ source.name }}</h2>
|
||
|
|
<ngx-stacked-example-block *ngFor="let example of source.liveExamples" [content]="example.content"
|
||
|
|
class="widget-block">
|
||
|
|
</ngx-stacked-example-block>
|
||
|
|
</nb-card-body>
|
||
|
|
</nb-card>
|
||
|
|
`,
|
||
|
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
||
|
|
})
|
||
|
|
export class NgxExamplesBlockComponent {
|
||
|
|
|
||
|
|
@Input('source') source;
|
||
|
|
|
||
|
|
}
|