Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

osspkg/ngx-services

Repository files navigation

@uxwb/services

Installation

  $ npm i @uxwb/ngx-services --save

Config

class Config {
  ajaxPrefixUrl?:string;
  webSocketUrl?:string;
}

Use

import { UXWBServicesModule } from '@uxwb/ngx-services';

@NgModule({
  ...
  imports: [
    ...
    UXWBServicesModule.forRoot({ ajaxPrefixUrl:'/api', webSocketUrl:'/ws' }),
  ],
  ...
})

License

BSD-3-Clause License. See the LICENSE file for details.