Like intercept(), the handle() method transforms an HTTP request into an Observable of HttpEvents which ultimately include the server's response. For example if you want to use ngForTemplate or Improve this answer. To format date in Angular we can use Angular Datepipe. Support for progressive web apps, a build optimizer, and Material Design improvements are among the highlights of Angular 5. We can achieve this behavior using Angular 2 directive ngClass: Rendering a list of components would be a great use-case for NgFor.. As Angular is a reactive framework, its common to see NgFor being used alongside observables, and so our code examples will also follow a reactive style. SVG as templates. Template reference variables. From the angular documentation: "The asterisk is "syntactic sugar" for something a bit more complicated. SVG as templates. In the most basic type-checking mode, with the fullTemplateTypeCheck flag set to false, Angular validates only top-level expressions in a template. this also solved my 'router-outlet' is not a known element issue. Unlike Angular 1 you can use ngModel directive in Angular 2 for two way data binding, but you need write it in a bit different way like [(ngModel)] (Banana in a box syntax).Almost all angular2 core directives doesn't support kebab-case now instead you should use camelCase.. Now ngModel directive belongs Using a pipe in a template. The app.component.ts and app.component.spec.ts files are siblings in the same folder. If you write