What do you want to save?
Add Code snippet
New code examples
-
TypeScript 2021-10-30 06:48:08
input property angular
/* @Output() - allows data to flow from the child class to the parent class - normally initialized with EventEmitter */ // Parent Component import { Component } from '@angular/core' @Component({ selector: app-component, template: ` <app-item... Add solution -
Other 2021-10-23 20:30:16
select with ngFor on option and ul
<div> <ul *ngFor="let sentence of sentences;let i = index;" class="collection"> <li class="collection-item"> <p [ngClass]="{'red': sentence?.disco == 1 , 'green': sentence?.di... 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-19 11:41:10
angular for each
//for <div *ngFor='let [data] of [dataArray]; let i=index;'> <h2> {{i}} {{data.title}} </h2> <img src='{{data.image}}' /> </div> //the data contained in an array will be displayed element by element //similar to... Add solution -
Javascript 2021-10-19 06:33:10
kendo datetime picket default timezone
Copy Codeimport { Component } from '@angular/core'; import { timezoneNames, ZonedDate } from '@progress/kendo-date-math'; import '@progress/kendo-date-math/tz/all'; const filterUncommon = list => list.filter(l => l.indexOf('/') > -1); const tim... Add solution
Best helpers
Ranking is empty