Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
92 views

Template Referencing not happening when origin has a *ngIf

<mat-icon #suggestionIcon="cdkOverlayOrigin" class="suggestionIcon" *ngIf="part.highlight" (click)="openOverlay()" cdkOverlayOrigin > ...
Amal Joby's user avatar
0 votes
1 answer
472 views

How to show and hide the calendar based on condition in angular

I have an angular application in that I need to show the caledar based selected dropdown list. .component.ts OptionList: LookupActionCode[]=[]; public setList(actionType: any):void{ this....
developer1's user avatar
-3 votes
2 answers
853 views

Angular 4+ : Why isn't ng-if working in app.componet.html?

I am currently trying to use an ng-if directive in my app.component.html file: <p>This should appear.</p> <p ng-if="0==1">This shouldn't, but it does.</p> My app.component....
FrolickingFerret445's user avatar
-2 votes
1 answer
562 views

Angular change template element based on the radio button

I have two radio buttons in my template. on selecting a button, different input text fields should be displayed for each button and the other fields should hide. How can I do this using Angular? I ...
Korobi Sarma's user avatar
2 votes
0 answers
384 views

In Angular2+ which one has the better performance? Using dynamic components or multiple *ngIf

I'm working on a data grid module. In the grid cells I need to display several types of data. So every cell is a component. Currently I'm using a ComponentFactoryResolver to generate the cells. ...
Viktor's user avatar
  • 123
0 votes
0 answers
363 views

angular2 ngif not working

I have a div in my HTML and i want to show it when a file is uploading. its a simple *ngIf but somehow its not working :( HTML <div *ngIf="loading" style="width: 100%;height: 100%; ...
Rasool jahani's user avatar
4 votes
1 answer
458 views

How make ngIf directive globally visible in all project?

I have a code <div class="flex-container" *ngIf="mail"> Some data </div> And i have a error Can't bind to 'ngIf' since it isn't a known property of 'div'. How i can fix it?
Maks K's user avatar
  • 3,912