File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/app/views/notifications/modals Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ <h5 cModalTitle>Modal title</h5>
60
60
</ c-card-header >
61
61
< c-card-body >
62
62
< p class ="text-medium-emphasis small ">
63
- If you don’t provide an < code > (modalChange )</ code > handler to the Modal component, your
63
+ If you don’t provide an < code > (visibleChange )</ code > handler to the Modal component, your
64
64
modal will behave as though the backdrop is static, meaning it will not close when
65
65
clicking outside it. Click the button below to try it.
66
66
</ p >
@@ -266,7 +266,7 @@ <h5 cModalTitle>Modal title</h5>
266
266
267
267
< ng-template #liveDemo >
268
268
< button (click) ="toggleLiveDemo() " cButton > Launch demo modal</ button >
269
- < c-modal id ="liveDemoModal " [visible] ="liveDemoVisible " (modalChange ) ="handleLiveDemoChange($event) ">
269
+ < c-modal id ="liveDemoModal " [visible] ="liveDemoVisible " (visibleChange ) ="handleLiveDemoChange($event) ">
270
270
< c-modal-header >
271
271
< h5 cModalTitle > Modal title</ h5 >
272
272
< button (click) ="toggleLiveDemo() " cButtonClose > </ button >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class ModalsComponent {
15
15
this . liveDemoVisible = ! this . liveDemoVisible ;
16
16
}
17
17
18
- handleLiveDemoChange ( event : any ) {
19
- this . liveDemoVisible = event . visible
18
+ handleLiveDemoChange ( event : boolean ) {
19
+ this . liveDemoVisible = event ;
20
20
}
21
21
}
You can’t perform that action at this time.
0 commit comments