File tree 2 files changed +17
-14
lines changed
src/components/docs-callout
2 files changed +17
-14
lines changed Original file line number Diff line number Diff line change 1
1
< c-callout class ="bg-white:dark:bg-transparent " color ="info ">
2
- < ng-container *ngTemplateOutlet ="default "> </ ng-container >
2
+ < ng-container *ngTemplateOutlet ="default " / >
3
3
</ c-callout >
4
4
5
5
< ng-template #default >
6
- < p *ngIf ="!!name ">
7
- An Angular {{name}} component{{plural ? 's' : ''}} {{plural ? 'have' : 'has'}} been created as a native Angular
8
- version
9
- of Bootstrap {{name}}. {{name}} {{plural ? 'are' : 'is'}} delivered with some new features,
10
- variants, and unique design that matches CoreUI Design System requirements.
11
- </ p >
6
+ @if (!!name) {
7
+ < p >
8
+ An Angular {{ name }} component{{ plural ? 's' : '' }} {{ plural ? 'have' : 'has' }} been created as a native
9
+ Angular
10
+ version
11
+ of Bootstrap {{ name }}. {{ name }} {{ plural ? 'are' : 'is' }} delivered with some new features,
12
+ variants, and unique design that matches CoreUI Design System requirements.
13
+ </ p >
14
+ }
12
15
13
- < ng-content > </ ng-content >
16
+ < ng-content / >
14
17
15
18
< br >
16
19
For more information please visit our official < a href ="{{href}} " target ="_blank "> documentation of CoreUI Components Library for Angular.</ a >
Original file line number Diff line number Diff line change 1
1
import { Component , Input } from '@angular/core' ;
2
2
import packageJson from '../../../package.json' ;
3
- import { NgTemplateOutlet , NgIf } from '@angular/common' ;
3
+ import { NgTemplateOutlet } from '@angular/common' ;
4
4
import { CalloutComponent } from '@coreui/angular' ;
5
5
6
6
@Component ( {
7
- selector : 'app-docs-callout' ,
8
- templateUrl : './docs-callout.component.html' ,
9
- styleUrls : [ './docs-callout.component.scss' ] ,
10
- standalone : true ,
11
- imports : [ CalloutComponent , NgTemplateOutlet , NgIf ]
7
+ selector : 'app-docs-callout' ,
8
+ templateUrl : './docs-callout.component.html' ,
9
+ styleUrls : [ './docs-callout.component.scss' ] ,
10
+ standalone : true ,
11
+ imports : [ CalloutComponent , NgTemplateOutlet ]
12
12
} )
13
13
export class DocsCalloutComponent {
14
14
You can’t perform that action at this time.
0 commit comments