Skip to content

Commit 2e65dc3

Browse files
alystandrefarzat
authored andcommitted
plotly-plot template: add ng-content
...inside outer *<div>* so that it's possible for the user to insert some templates within div
1 parent 0322ea5 commit 2e65dc3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

projects/plotly/src/lib/plotly.component.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ import { Plotly } from './plotly.interface';
2525
// @dynamic
2626
@Component({
2727
selector: 'plotly-plot',
28-
template: `<div #plot [attr.id]="divId" [ngClass]="getClassName()" [ngStyle]="style"></div>`,
28+
template: `<div #plot [attr.id]="divId" [ngClass]="getClassName()" [ngStyle]="style">
29+
<ng-content></ng-content>
30+
</div>`,
2931
providers: [PlotlyService],
3032
})
3133
export class PlotlyComponent implements OnInit, OnChanges, OnDestroy, DoCheck {

0 commit comments

Comments
 (0)