What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-27 19:13:08
Object is possibly null
*ngIf="f.firstName.errors?.required" Add solution -
C# 2021-10-25 07:46:11
*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]="condi... Add solution -
TypeScript 2021-10-19 18:45:05
angular conditional directives
//if <div *ngIf='[condition]'> </div> //if [condition]==true the div will be shown //for <div *ngFor='let [data] of [dataArray]; let i=index;'> <h2> {{i}} {{data.title}} </h2> <img src='{{data.image}}' /> ... Add solution -
Javascript 2021-10-14 20:24:07
change icon on click angular
import { Component } from '@angular/core' export interface CollapsibleItem { label: string; text: string; state: boolean; } @Component({ selector:'whateveryouwant', template: ` <ul class="collapsible" data-collapsible="a... Add solution
Best helpers
Christie
+5
Don Yarber
+5
Mike
+5
Jack Steele
+5
Bossylobster
+5
Tjb1982
+5
Alana
+5
Mythio
+5
Rane Chetan
+5
Androider
+5
Ms.Zizmor
+5
Joshua Burns
+5
Sea shell
+5
Zolani13
+5
Meldie Ching
+5
Nancye S....
+5
Oritatami
+5
FirstLegion
+5