What is the difference between Promises and Observables?

0 Comment

Promise A Promise handles a single event when an async operation completes or fails. Note: There are Promise libraries out there that support cancellation, but ES6 Promise doesn’t…

Conditional class with *ngClass

0 Comment

Single Class: Multiple Classes: Details: my_class – CSS class. step – Angular model step1 – Boolean condition Add block