Top "Angular-ng-if" questions

An Angular core directive that toggles the presence of the targeted element in the DOM.

How to write *ngIf for input placeholder in Angular2?

I have a template <ng-container *ngFor="let text of texts[i]; let j = index">{{text}} <input type="…

angular angular-ng-if
AngularJS - input autofocus with ng-if not working

When I surround my input with ng-if, after hide and show the autofocus attribute does not take effect: Here is …

javascript angularjs input autofocus angular-ng-if
ng-if not working, ng-show works

I have an html where I must show AngularJS template only when I reach the bottom of the page (I've …

javascript angularjs angular-ng-if
Event to fire when an angular *ngIf statement evaluates in template

If I have the following: <div *ngIf="user$ | async as user" class="container"> <p>{{user.name}}&…

angular angular-ng-if angular-template
ng-click not working with ng-if

Why does the second button not work, when ng-if is used? I want to realize a button that is present …

javascript angularjs angularjs-ng-click angular-ng-if
Angular ng-if inside option element and ng-repeat not working

I have select element which should list available currencies. Default currency should have prefix "Default" before its name. For some …

angularjs angularjs-ng-repeat angular-ng-if
Angularjs: how to close ng-if in comment block?

<div ng-if="true">visible</div> is pretty easy, but since ngIf can be used even in …

angularjs angular-ng-if
angularjs ng-if not empty for ng-repeat

I have a list of elements I want to display only if not null and empty, and for that I …

javascript angularjs angularjs-directive angularjs-ng-repeat angular-ng-if
angular2 toggle icons inside ngFor

Can some one please let me know how to toggle icons while doing ngFor? Problem Statement: I'm using *ngFor to …

loops angular typescript ngfor angular-ng-if
Angular 2 ng2 How to use TypeScript enum inside template?

I have component for multiple filters with different types. For type recognition I want to use enum with filter types. …

templates typescript angular angular-ng-if