File tree 3 files changed +5
-10
lines changed
src/app/views/notifications/toasters
3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 1
- import { Component , OnInit } from '@angular/core' ;
1
+ import { Component } from '@angular/core' ;
2
2
3
3
@Component ( {
4
4
selector : 'toast-sample-icon' ,
5
5
templateUrl : './toast-sample-icon.component.svg' ,
6
+ standalone : true
6
7
} )
7
- export class ToastSampleIconComponent implements OnInit {
8
-
9
- constructor ( ) { }
10
-
11
- ngOnInit ( ) : void {
12
- }
13
-
8
+ export class ToastSampleIconComponent {
14
9
}
Original file line number Diff line number Diff line change 7
7
< strong > {{ title }}</ strong >
8
8
</ c-toast-header >
9
9
< c-toast-body #toastBody [cToastClose] ="toastBody.toast ">
10
- < p class ="mb-1 "> This is a dynamic toast no {{ toastBody.toast?.index }} {{ toastBody.toast?.clock }}</ p >
10
+ < p class ="mb-1 "> This is a dynamic toast no {{ toastBody.toast?.index() }} {{ toastBody.toast?.clock }}</ p >
11
11
< ng-content />
12
12
< c-progress thin [value] ="25*(toastBody.toast?.clock ?? 1) " />
13
13
</ c-toast-body >
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ <h5>Add toast with following props:</h5>
75
75
</ c-toast >
76
76
< app-toast-simple #toast [autohide] ="false " [fade] ="true " [visible] ="true " [title] ="'App Toast' "
77
77
color ="secondary ">
78
- This is a toast in static positioned App toaster! {{ toast.index }}
78
+ This is a toast in static positioned App toaster! {{ toast.index() }}
79
79
</ app-toast-simple >
80
80
</ c-toaster >
81
81
</ c-col >
You can’t perform that action at this time.
0 commit comments