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>
6060 </ c-card-header >
6161 < c-card-body >
6262 < 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
6464 modal will behave as though the backdrop is static, meaning it will not close when
6565 clicking outside it. Click the button below to try it.
6666 </ p >
@@ -266,7 +266,7 @@ <h5 cModalTitle>Modal title</h5>
266266
267267< ng-template #liveDemo >
268268 < 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) ">
270270 < c-modal-header >
271271 < h5 cModalTitle > Modal title</ h5 >
272272 < button (click) ="toggleLiveDemo() " cButtonClose > </ button >
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ export class ModalsComponent {
1515 this . liveDemoVisible = ! this . liveDemoVisible ;
1616 }
1717
18- handleLiveDemoChange ( event : any ) {
19- this . liveDemoVisible = event . visible
18+ handleLiveDemoChange ( event : boolean ) {
19+ this . liveDemoVisible = event ;
2020 }
2121}
You can’t perform that action at this time.
0 commit comments