mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02:00
feat: update npm packages
This commit is contained in:
parent
f6d9ec88ad
commit
7a22737611
321 changed files with 19716 additions and 84 deletions
|
@ -0,0 +1,22 @@
|
|||
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-inline-example-block',
|
||||
template: `
|
||||
<ngx-example-block *ngIf="isOneFile" [content]="content"></ngx-example-block>
|
||||
<ngx-tabbed-example-block *ngIf="isTabbed" [content]="content"></ngx-tabbed-example-block>
|
||||
`,
|
||||
changeDetection: ChangeDetectionStrategy.OnPush,
|
||||
})
|
||||
export class NgxInlineExampleBlockComponent {
|
||||
|
||||
@Input() content;
|
||||
|
||||
get isOneFile(): boolean {
|
||||
return !this.isTabbed;
|
||||
}
|
||||
|
||||
get isTabbed(): boolean {
|
||||
return this.content.files.length > 1;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue