O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

AppComponent

AppComponent is the component of an application that is configured as root component, and it handles the rendering of the app.component.html template. In the preceding sections, we saw the template code that implemented various pipes and their respective output. The following code snippet shows the component for the template:

import { Component } from '@angular/core';  @Component({   selector: 'pipe-page',   templateUrl: 'app/app.component.html' }) export class AppComponent {     numberData : number;     currencyData : number;     dateData : number;     authorName : string;     object: Object = {autherName: 'Rajesh Gunasundaram',       pubName: 'Packt Publishing'}     constructor() {         this.numberData = 123.456789;         this.currencyData = 50;  this.dateData ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required