This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { | |
| combineLatest, | |
| distinctUntilChanged, | |
| filter, | |
| map, | |
| Observable, | |
| scan, | |
| shareReplay, | |
| switchMap, | |
| withLatestFrom |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {Component, OnInit, Optional} from '@angular/core'; | |
| import { MetadataService } from '../../metadata.service'; | |
| @Component({ | |
| selector: 'app-page1', | |
| templateUrl: './page1.component.html', | |
| styleUrls: ['./page1.component.scss'] | |
| }) | |
| export class Page1Component implements OnInit { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { NgModule } from '@angular/core'; | |
| import { ServerModule } from '@angular/platform-server'; | |
| import { AppModule } from './app.module'; | |
| import { AppComponent } from './app.component'; | |
| import { MetadataService } from './metadata.service'; | |
| @NgModule({ | |
| imports: [ | |
| AppModule, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import {InjectionToken} from '@angular/core'; | |
| export const HOST_URL = new InjectionToken<string>('HostUrl'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Inject, Injectable } from '@angular/core'; | |
| import {Meta, MetaDefinition, Title} from '@angular/platform-browser'; | |
| import {HOST_URL} from './tokens/host-url'; | |
| import { Router } from '@angular/router'; | |
| export interface PageMetadata { | |
| title: string; | |
| // image will be added later | |
| description: string; | |
| author: string; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'zone.js/dist/zone-node'; | |
| import { ngExpressEngine } from '@nguniversal/express-engine'; | |
| import * as express from 'express'; | |
| import { join } from 'path'; | |
| import { AppServerModule } from './src/main.server'; | |
| import { APP_BASE_HREF } from '@angular/common'; | |
| import { existsSync } from 'fs'; | |
| import * as isbot from 'isbot'; |