angular / in-memory-web-api

The code for this project has moved to the angular/angular repo. This repo is now archived.
MIT License
1.18k stars 231 forks source link

post409 option in InMemoryBackEndConfigArgs labelled incorrectly #261

Open dylanesque opened 4 years ago

dylanesque commented 4 years ago

Lines 74-78 from interfaces.d.ts:

/**
    * false (default) should NOT update existing item with POST. false: OK to update.
    */
    post409?: boolean;
    /**

Which is which? There's also the question of this feature being broken entirely, since setting the value to 'true' in 'app.module.ts' doesn't seem to change anything:

  HttpClientInMemoryWebApiModule.forRoot(
      InMemoryDataService, { dataEncapsulation: false, delay: 500, post409: true }
    ),