your recipe card header background

    Create Root Component



    Jose Romero

    Angular TypeScript Recipes

    This code defines a prefix-app component that will be used to display an <router-outlet/> element. The <router-outlet/> element will be used to display the home page of the application.

    Library: angular

    Shortcut: angular.component.root

    import { Component } from '@angular/core';
      selector: 'prefix-app',
      template: `
    export class AppComponent { }
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.