In the ng-bootstrap
modal documentation there are uses of some kind of let-*
attribute that seemed to be used to link a function or event for later use. If you look at the (click)
events and the let-c
/ let-d
attributes at the top of the examples, you can get a feel for what it does. This appears to be a feature of Angular and has nothing to do with ng-bootstrap
.
But what is this called? What does it do? Where are the Angular docs for this feature?
Here's an example of what I'm referring to. See the very first line.
<ng-template #content let-c="close" let-d="dismiss">
<div class="modal-header">
<h4 class="modal-title" id="modal-basic-title">Profile update</h4>
<button type="button" class="close" aria-label="Close" (click)="d('Cross click')">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<!-- content here omitted -->
</div>
<div class="modal-footer">
<button type="button" class="btn btn-outline-dark" (click)="c('Save click')">Save</button>
</div>
</ng-template>
I've Googled this to no avail; the only results I get are about the let
keyword when using ngFor
, which is obviously not related.