1.1.9 • Published 7 years ago

ng-backendless v1.1.9

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

ng-backendless

Build Status Coverage Status

Fully featured, extensible and flexible Angular (4+) module for application backendless development. The functionality is based on injecting (via HttpInterceptor) of a list of fake backend API mappings that will be used by HttpClient implicitly when you run http calls in your application.

How to use

import {NgModule} from '@angular/core';
import {HttpClientModule, HttpResponse} from '@angular/common/http';
import {FakeBackendModule, FakeBackendConfig, SimpleUrlMatchRoute} from 'ng-backendless';

class Value {
  constructor(public val: number) {}
}

export function fakeBackendConfigFactory() {
  return <FakeBackendConfig>{
    routes: [
      new SimpleUrlMatchRoute('/api/values', new HttpResponse({body: [new Value(100)], status: 200, statusText: 'OK'}))
    ]
  };
}


@NgModule({
  imports: [
    HttpClientModule,
    FakeBackendModule.forRoot(fakeBackendConfigFactory)
  ],
  declarations: [
  ],
  bootstrap: []
})
export class AppModule {
}
1.1.9

7 years ago

1.1.8

7 years ago

1.1.7

7 years ago

1.1.6

7 years ago

1.1.5

7 years ago

1.1.4

7 years ago

1.1.3

7 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago