your recipe card header background

    Angular Root Component

    0

    0

    lucycodes42

    Angular snippets for TypeScript

    In the above code, we are importing the Component from @angular/core. We are also specifying that our AppComponent class will be exported. This means that outside of our AppComponent class, we can reference the RouterOutlet.

    Library: angular

    Shortcut: a_component_root

    import { Component } from '@angular/core';
    
    @Component({
      selector: 'prefix-app',
      template: `
        <router-outlet></router-outlet>
        `
    })
    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.