Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

*ngif vs ngif

ngIf is the directive. Because it's a structural directive (template-based), you need to use the * prefix to use it into templates.

*ngIf corresponds to the shortcut for the following syntax ("syntactic sugar"):

<template [ngIf]="condition">
  <p>
    Our heroes are true!
  </p>
</template>
Equivalent to:

<p *ngIf="condition">
  Our heroes are true!
</p>
Comment

PREVIOUS NEXT
Code Example
Csharp :: animation not playing unity 
Csharp :: array to object c# 
Csharp :: How to create a class and objects in C# 
Csharp :: truncate c# 
Csharp :: static keyword 
Csharp :: or operator in c# 
Csharp :: unity set cursor position 
Csharp :: assert.equal 
Csharp :: c# sequential struct with fixed array size 
Csharp :: wpf dispatcher timer is inaccurate 
Csharp :: cloudmailin c# 
Csharp :: change tab to enter in c# form 
Csharp :: c# driver.findelement to look for declared variable 
Csharp :: hide component in component menu 
Csharp :: dynamics 365 create record c# 
Csharp :: c# Prefix Sum of Matrix (Or 2D Array) 
Csharp :: c# windows forms rtc 
Csharp :: transform.lookat 2d 
Csharp :: how to cut image from timeline editor in c# 
Csharp :: executesqlinterpolatedasync stored procedure 
Csharp :: how to check if data already exists in database in c# mvc 
Csharp :: how to fill dictionary in c# 
Csharp :: != in f# 
Csharp :: C# How to implement IEnumerable<T interface 
Csharp :: autoclicker for yes/no in c# indicator 
Csharp :: C# Move Camera Over Terrain Using Touch Input In Unity 3D 
Csharp :: .net new template 
Csharp :: user control equivalent event for form.shown c# 
Csharp :: unity create file name datetime 
Csharp :: telerik mvc grid editable date no time 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =