File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
src/app/views/notifications/toasters Expand file tree Collapse file tree 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' ;
22
33@Component ( {
44 selector : 'toast-sample-icon' ,
55 templateUrl : './toast-sample-icon.component.svg' ,
6+ standalone : true
67} )
7- export class ToastSampleIconComponent implements OnInit {
8-
9- constructor ( ) { }
10-
11- ngOnInit ( ) : void {
12- }
13-
8+ export class ToastSampleIconComponent {
149}
Original file line number Diff line number Diff line change 77 < strong > {{ title }}</ strong >
88 </ c-toast-header >
99 < 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 >
1111 < ng-content />
1212 < c-progress thin [value] ="25*(toastBody.toast?.clock ?? 1) " />
1313 </ c-toast-body >
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ <h5>Add toast with following props:</h5>
7575 </ c-toast >
7676 < app-toast-simple #toast [autohide] ="false " [fade] ="true " [visible] ="true " [title] ="'App Toast' "
7777 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() }}
7979 </ app-toast-simple >
8080 </ c-toaster >
8181 </ c-col >
You can’t perform that action at this time.
0 commit comments