python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Adding ngIf to script tag in html not working
I am trying to add a src to a script in my html file, but only if a condition is true. Otherwise it should not have run the script src. Below is my code so far:
<script>
this.booleanVa...
user18278709
Votes: 0
Answers: 1
How can a regular (breaking) space be added between items rendered using ng-container and ngFor in Angular to allow word wrapping
When rendering html anchor tags in an ng-container using ngFor, spaces between the tags are removed. The result is that the contents overflow the parent container.
I've tried adding a space inside a s...
Alex Cooper
Votes: 0
Answers: 1
Adding Dynamic Content inside <ng-template>
<ng-template #reuse>
<div>Hello World</div>
</ng-template>
<ng-container [ngTemplateOutlet]="reuse"></ng-container>
<ng-container [ngTemplateOutle...
Ramya Balasubramanian
Votes: 0
Answers: 2
Angular 11+ MatDialog: inner component's (ngComponentOutlet) html does not trigger <button (click)="close()"> method. Works on Angular 9
In fact, I'm having more issues with the ngComponentOutlet-embedded component inside the MatDialog. But let's start here.
What I'm building
I want to display an arbitrary Component inside a MatDialog....
netikras
Votes: 0
Answers: 2