File

apps/demo/src/app/pages/home-page/home-page.component.ts

Metadata

changeDetection ChangeDetectionStrategy.OnPush
selector home-page
templateUrl home-page.component.html

Constructor

constructor(activatedRoute: ActivatedRoute)

Properties

activatedRoute
activatedRoute: ActivatedRoute
Public readme
readme: any
title$
title$: Observable<string>
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { BindIoInner } from 'ngx-bind-io';
import { Observable } from 'rxjs';
import { map } from 'rxjs/operators';

declare var require: any;
@BindIoInner()
@Component({
  selector: 'home-page',
  templateUrl: './home-page.component.html',
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class HomePageComponent {
  public readme = require('html-loader!markdown-loader!./../../../../../../README.md').replace(
    '<h1 id="rucken-todo-ionic">rucken-todo-ionic</h1>',
    ''
  );
  title$: Observable<string>;
  constructor(
    public activatedRoute: ActivatedRoute
  ) {
    this.title$ = activatedRoute.data.pipe(
      map(data => data && data.meta && data.meta.title)
    );
  }
}

results matching ""

    No results matching ""