1 What are Pipes in Angular?Â
Pipes are simple functions designed to accept an input value, process, and return as an output, a transformed value in a more technical understanding. Angular supports several built-in pipes. However, you can also create custom pipes that cater to your needs.Â
Some key features include:Â
3 How are Angular expressions different from JavaScript expressions?
One major difference between Angular expressions and JavaScript expressions is that Angular expressions are compiled while JavaScript expressions are not. This means that Angular expressions are more efficient since theyre already pre-processed. Additionally, Angular expressions can access scope properties while JavaScript expressions cannot. Finally, Angular expressions support some additional features such as filters and directives which arent available in JavaScript expressions.
Javascript expression example:
     Â
     Â
         Â
         Â
         Â
     Â
     Â
         Â
     Â
     Â
          use strict;
          let bar = {};
          document.getElementById(foo).innerHTML = bar.x;
     Â
     Â
Angular expression example:
import { Component, OnInit } from @angular/core;
      @Component({
        selector: app-new,
        template: `
           Â
{{message}}
        `,
        styleUrls: [./new.component.css]
      })
      export class NewComponent implements OnInit {
        message:object = {};
        constructor() { }
        ngOnInit() {
        }
      }
What are the new updates with Angular10?Â
NGCC Feature – Addition of NGCC features with a program based entry point finder.Â