File

src/app/app.component.ts

Implements

OnInit

Metadata

selector app-root
templateUrl ./app.component.html

Index

Methods

Constructor

constructor(renderer: Renderer2, routingStateService: RoutingStateService)
Parameters :
Name Type Optional Description
renderer Renderer2
routingStateService RoutingStateService

Methods

ngOnInit
ngOnInit()
Returns : void
import { Component } from '@angular/core';
import { Renderer2 } from '@angular/core';
import { OnInit } from '@angular/core';
import { RoutingStateService } from './shared/services/routing-state.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
})
export class AppComponent implements OnInit {

  constructor(private renderer: Renderer2,
              private routingStateService: RoutingStateService) {
  }

  ngOnInit() {
    this.routingStateService.watchRouting();
  }

}
<app-sidebar></app-sidebar>

<app-body>
  <router-outlet></router-outlet>
</app-body>

<app-http-loader></app-http-loader>
<app-blocker></app-blocker>
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""