rt-platform
TypeScript icon, indicating that this package has built-in type declarations

18.0.0 • Public • Published

RT Platform v.0.0.4

Module provide service that:

  • may return base url depends on data provided in configs;
  • may check if current environment is browser or server;

Install

npm i rt-platform
yarn add rt-platform

Usage

Import RtPlatformModule into your module and provide configs (see RtPlatformConfig interface for more details):

import {RtPlatformModule} from 'rt-platform';

@NgModule({  
  imports: 
    ...
    RtPlatformModule.forRoot({
      localBaseUrl: settings.BASE_URL,
      serverBaseUrl: 'some_server_url',
    }),
  ...
})
export class AppModule {}

Changes history

v.0.0.0 - copy rt-platform module from exiting projects

v.0.0.1 - move BASE_URL variable from settings to injected configs

v.0.0.2 - update README, rename rt-platform.model.ts to symbols.ts

v.0.0.3 - update README, add global var --app-height

v.0.0.4 - update README

Readme

Keywords

Package Sidebar

Install

npm i rt-platform

Weekly Downloads

75

Version

18.0.0

License

MIT

Unpacked Size

42.9 kB

Total Files

18

Last publish

Collaborators

  • aendarion
  • andriy_podolian