File

src/app/header/header.component.ts

Description

Component that displays the name of the app in a banner at the top

Metadata

selector app-header
styleUrls header.component.css
templateUrl ./header.component.html

Properties

appName
appName:
Default value : Bob's Bookstore

Name of the app

import { Component } from '@angular/core';

/**
 * Component that displays the name of the app in a banner at the top
 */
@Component({
  selector: 'app-header',
  templateUrl: './header.component.html',
  styleUrls: ['./header.component.css']
})
export class HeaderComponent {
  /**
   * Name of the app
   */
  appName = "Bob's Bookstore";

}
<header class="page-header text-center">
    <h1>{{appName}}</h1>
</header>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""