import { Component } from '@angular/core';
      
      @Component({
        selector: 'prefix-app',
        template: `
          <router-outlet></router-outlet>
          `
      })
      export class AppComponent { }

      Typescript language logo
      your recipe card header background
      Create Root Component

      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.

      Shortcut: angular.component.root

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.